gpt4 book ai didi

android - Cordova 构建失败

转载 作者:搜寻专家 更新时间:2023-11-01 09:32:45 25 4
gpt4 key购买 nike

我已经安装了 Cordova,但是当我在终端中运行 $ cordova build 时,它显示以下错误。请帮帮我。

BUILD FAILED

Total time: 8.645 secs Error: /home/borsha/hello/platforms/android/gradlew: Command failed with exit code 1 Error output: /home/borsha/hello/android-sdk-linux/build-tools/26.0.1/aapt: 1: /home/borsha/hello/android-sdk-linux/build-tools/26.0.1/aapt: Syntax error: ")" unexpected

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':CordovaLib:processDebugResources'. com.android.ide.common.process.ProcessException: Failed to execute aapt

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

更新

BUILD FAILED

Total time: 2.799 secs Error: /home/borsha/hello/platforms/android/gradlew: Command failed with exit code 1 Error output: /home/borsha/hello/android-sdk-linux/build-tools/25.0.0/aapt: 3: /home/borsha/hello/android-sdk-linux/build-tools/25.0.0/aapt: Syntax error: Unterminated quoted string

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':CordovaLib:processDebugResources'. com.android.ide.common.process.ProcessException: Failed to execute aapt

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

最佳答案

尝试将 API 级别降级到 23.0.3。您可以使用 Android SDK ManagerAndroid Studio 执行此操作,也可以按照说明进行操作 here .

高于 23.0.3 的版本仍然存在错误。

关于android - Cordova 构建失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45749509/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com