爱奥尼亚·科尔多瓦(Ionic Cordova)建立Android工具失败

时间:2018-10-21 14:42:19

标签: android cordova ionic-framework aapt

我正在使用ionic来构建应用程序,并且运行“ cordova build android”,但出现以下错误:

    Error: java.util.concurrent.ExecutionException: java.lang.RuntimeException: No server to serve request. Check logs for details.
:app:mergeDebugResources FAILED
21 actionable tasks: 7 executed, 14 up-to-date
/home/manolakis/Desktop/myApp/platforms/android/gradlew: Command failed with exit code 1 Error output:
AAPT err(Facade for 21220418): /home/manolakis/Android/Sdk/build-tools/27.0.3/aapt2: 1: /home/manolakis/Android/Sdk/build-tools/27.0.3/aapt2: Syntax error: "(" unexpected
Slave 21220418 failed to start
java.lang.RuntimeException: AAPT slave failed to start. Please make sure the current build tools (located at /home/manolakis/Android/Sdk/build-tools/27.0.3/aapt2) are not corrupted.
    at com.android.builder.png.AaptProcess.waitForReadyOrFail(AaptProcess.java:211)
    at com.android.builder.internal.aapt.AaptQueueThreadContext.creation(AaptQueueThreadContext.java:56)
    at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:213)
    at java.lang.Thread.run(Thread.java:748)
AAPT err(Facade for 8920626): /home/manolakis/Android/Sdk/build-tools/27.0.3/aapt2: 1: /home/manolakis/Android/Sdk/build-tools/27.0.3/aapt2: Syntax error: "(" unexpected
Slave 8920626 failed to start
java.lang.RuntimeException: AAPT slave failed to start. Please make sure the current build tools (located at /home/manolakis/Android/Sdk/build-tools/27.0.3/aapt2) are not corrupted.
    at com.android.builder.png.AaptProcess.waitForReadyOrFail(AaptProcess.java:211)
    at com.android.builder.internal.aapt.AaptQueueThreadContext.creation(AaptQueueThreadContext.java:56)
    at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:213)
    at java.lang.Thread.run(Thread.java:748)

FAILURE: Build failed with an exception.

如何处理损坏的工具?

0 个答案:

没有答案