cordova - 配置项目“:CordovaLib”时出现问题
问题描述
3 秒内构建失败
命令:
Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
- 出了什么问题:配置项目“CordovaLib”时出现问题。
在带有 pref 的 ABI 的 NDK 工具链文件夹中找不到工具链
尝试:使用
--stacktrace
选项运行以获取堆栈跟踪。运行--infout
。在https://help.gradle.org获得更多帮助
3 秒内构建失败
[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
解决方案
将 Android NDK 更新到版本 18 时我遇到了同样的问题。要解决此问题,您应该从 https://developer.android.com/ndk/downloads/older_releases下载 Android NDK(修订版 17c) 然后使用 SDK 管理器删除 NDK,然后解压缩文件到 android-sdk-location/ndk-bundle。
推荐阅读
- c - 作为参数传递时结构混乱
- reactjs - 将局部图块渲染为
在反应传单中 - r - 丢弃一个预测类时 randomForest 包的奇怪行为
- powerbi - Power BI Analysis Services 数据源用户名和密码
- javascript - 使用 Angular 跳过焦点或激活禁用的按钮
- reactjs - 为 React Apollo 订阅客户端配置 onSubscriptionData
- html - 设置为“无”的 HTML 图像显示在设置为阻止时不会显示
- php - Foreach 数组只接收最后一个键
- php - PHP - 如何在 whileloop 中赋值并在其他页面上访问它们
- android - Android中可自定义的浮动按钮