配置项目“:CordovaLib"时出现问题 [英] A problem occurred configuring project ':CordovaLib'
问题描述
3 秒内构建失败
命令:
命令失败,退出代码为 1 错误输出:FAILURE:构建失败并出现异常.
- 出了什么问题:配置项目CordovaLib"时出现问题.<块引用>
在带有 pref 的 ABI 的 NDK 工具链文件夹中找不到工具链
试试:使用
--stacktrace
选项运行以获取堆栈跟踪.使用--inout
运行.- 获得更多帮助/li>
3 秒内构建失败
[ERROR] 运行子进程 Cordova 时出错.
cordova build android 以退出代码 1 退出.使用 --verbose 标志重新运行此命令可能会提供
我在将 Android NDK 更新到版本 18 时遇到了同样的问题.要解决此问题,您应该从以下位置下载 Android NDK(修订版 17c)https://developer.android.com/ndk/downloads/older_releases然后使用 SDK Manager 删除 NDK,并将文件解压到 android-sdk-location/ndk-bundle.
BUILD FAILED in 3s
cmd:
Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
- What went wrong:
A problem occurred configuring project 'CordovaLib'.
No toolchains found in the NDK toolchains folder for ABI with pref
Try: Run with
--stacktrace
option to get the stack trace. Run with--infout
.Get more help at https://help.gradle.org
BUILD FAILED in 3s
[ERROR] An error occurred while running subprocess Cordova.
cordova build android exited with exit code 1.
Re-running this command with the --verbose flag may provide
I had the same problem when updated Android NDK to version 18. To fix this you should download Android NDK (Revision 17c) from https://developer.android.com/ndk/downloads/older_releases Then delete NDK using SDK Manager, and extract files to android-sdk-location/ndk-bundle.
这篇关于配置项目“:CordovaLib"时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!