2016-08-25 78 views
0

我試圖運行此命令構建Android命令:錯誤在離子2

ionic run android 

,我得到這個錯誤:

: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.

問題是什麼?

感謝

+0

您能否包含您的'config.xml'文件的內容? – sebaferreras

回答

0

感謝sebaferreras!我在xml文件中有不必要的行。

+0

很高興聽到您解決了問題:) – sebaferreras

+0

您刪除了哪一行?請發佈適合您的解決方案。 –