Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i need help with error unboun prefix #162

Closed
monofdr opened this issue Jul 23, 2019 · 1 comment
Closed

i need help with error unboun prefix #162

monofdr opened this issue Jul 23, 2019 · 1 comment

Comments

@monofdr
Copy link

monofdr commented Jul 23, 2019

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:mergeDebugResources'.

java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
C:\app\magnetodemo\camahueto\platforms\android\app\src\main\res\xml\config.xml:31: error: unbound prefix.

but the line 31 is this

<icon gap:density="ldpi" gap:platform="android" src="icon.png" />

the xml file is this

Nuevo documento de texto.txt

@dpa99c
Copy link
Owner

dpa99c commented Jul 24, 2019

The immediate error is caused because you are using an undeclared namespace - you need to declare it in your <widget> in config.xml:

<widget xmlns     = "http://www.w3.org/ns/widgets"
    xmlns:gap = "http://phonegap.com/ns/1.0"

However the gap prefix is specific to Phonegap Build - this plugin will not work with Phonegap Build as it relies on Cordova hooks scripts (unsupported by Phonegap Build).

@dpa99c dpa99c closed this as completed Jul 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants