首页 > 解决方案 > 配置项目“:CordovaLib”时出现问题

问题描述

3 秒内构建失败

命令:

Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

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

标签: cordovasdkandroid-ndkionic3

解决方案


将 Android NDK 更新到版本 18 时我遇到了同样的问题。要解决此问题,您应该从 https://developer.android.com/ndk/downloads/older_releases下载 Android NDK(修订版 17c) 然后使用 SDK 管理器删除 NDK,然后解压缩文件到 android-sdk-location/ndk-bundle。


推荐阅读