A problem occurred configuring project ':CordovaLib'

偶尔善良 提交于 2021-01-27 12:50:44

问题


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

回答1:


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.




回答2:


Probably your NDK directory is not complete. You can download the NDK package from https://developer.android.com/ndk/downloads/ separately and unzip it.

Then open the toolchains folder, compare it with the android-sdk->ndk-bundle->toolchains folder, find the missing folder and copy / paste it to your ndk-bundle, Recompiling your project should go well.

You can also see more discussions at thread: https://github.com/google/filament/issues/15



来源:https://stackoverflow.com/questions/52717762/a-problem-occurred-configuring-project-cordovalib

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!