'Azure devops pipeline for Android : No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android

I am new to Azure devops Pipelines and was currently setting up pipeline following the documentations. My builds are failing due to this error

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

Agent I use in Azure devops is macos-latest. My yml file content is as given below

trigger:
- develop

pool:
  vmImage: 'macos-latest'

steps:

- task: Gradle@2
  inputs:
    workingDirectory: ''
    gradleWrapperFile: 'gradlew'
    gradleOptions: '-Xmx3072m'
    publishJUnitResults: false
    testResultsFiles: '**/TEST-*.xml'
    tasks: 'assembleDebug --info'

Can anyone help me fixing this?



Solution 1:[1]

To resolve this No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android error, try following ways:

As suggested by brianegan:

You can specify the Gradle version in either the File > Project Structure > Project menu in Android Studio, or by editing the Gradle distribution reference in the gradle/wrapper/gradle-wrapper.properties file.

Make sure to update the gradle version respective to plugin version.

  1. Update the gradle distribution version in android/gradle/gradle-wrapper.properties:
distributionUrl = "https\://services.gradle.org/distributions/gradle-7.0.0-all.zip"
  1. Update the gradle tools version in android/build.gradle:
classpath 'com.android.tools.build:gradle:3.2.0'

References: No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android, Update the Android Gradle plugin and Error: No toolchains found in the NDK toolchains folder for ABI with prefix

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1