Problems when building in ionic cordova android

  • What went wrong: A problem occurred configuring project ‘:CordovaLib’.

No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
  • Get more help at https://help.gradle.org

BUILD FAILED in 1s 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 prefix: mips64el-linux-android

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
  • Get more help at https://help.gradle.org

BUILD FAILED in 1s [ERROR] An error occurred while running subprocess cordova.

    cordova build android --release exited with exit code 1.

    Re-running this command with the --verbose flag may provide more information

Ok after looking around the solution was to remove the NDK designation from my preferences.

Android Studio -> Preferences -> System Settings -> Android SDK -> SDK Tools -> Unselect NDK -> Apply button.

Project and Gradle compiled fine after that and I was able to move on with my project work.

As far as why this is happening, I do not know but for more info on NDK check out: NDK (Android)  |  Android NDK  |  Android Developers

I will go back and enable these libraries but for now, I am just glad I can move on with my work. :slight_smile:

This answers is comming from StackOverflow, all the credits for @c0d3junkie

2 Likes

thank you very much, it worked :mueca:

1 Like