Error on build android command

Hi, I tried to run this command:

ionic run android

and i got this error:

:processDebugManifest
UP-TO-DATE
:processDebugResources
/home/ubuntu/workspace/WriteNow/platforms/android/res/xml/config.xml:57: AAPT: Error parsing XML: unbound prefix

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:processDebugResources’.

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ‘command ‘/usr/jdk/android-sdk-linux/build-tools/24.0.2/aapt’’ finished with non-zero exit value 1

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

FAILED

BUILD FAILED

Total time: 3.261 secs

Error: /home/ubuntu/workspace/WriteNow/platforms/android/gradlew: Command failed with exit code 1 Error output:
/home/ubuntu/workspace/WriteNow/platforms/android/res/xml/config.xml:57: AAPT: Error parsing XML: unbound prefix

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:processDebugResources’.

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ‘command ‘/usr/jdk/android-sdk-linux/build-tools/24.0.2/aapt’’ finished with non-zero exit value 1

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

What is the problem?

Thans

You may have put something that wasn’t supposed to be there in app/config.xml (the cordova config file).

1 Like