Search code examples
ionic-frameworkcordova-pluginsbuilding

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

Solution

  • Upgrade your version of cordova-android to the latest 7.1.3 and it will use the gradle plugin for android v3.3 which no longer checks for mips abi in the NDK.

    also make sure to set the ANDROID_NDK_HOME environment variable to the location of your NDK.