Gradle project sync fail, no toolchains

前端 未结 5 1004
借酒劲吻你
借酒劲吻你 2021-01-18 23:29

Hello I\'m getting this error in android studio :

Gradle project sync failed. Basic functionality (editing, debugging) will not work properly

And in messages

5条回答
  •  一向
    一向 (楼主)
    2021-01-18 23:48

    According the GitHub post, your Android Gradle plugin is looking for mips toolchain which may not exist. Solution is to update the Android Gradle plugin and Gradle version.

    Update Android Gradle plugin version in the app level build.gradle file.

    buildscript {
    ...
        dependencies {
            classpath 'com.android.tools.build:gradle:3.1.4'
            ...
        }
    }
    

    Android Gradle plugin will also require Gradle version 4.4 which you may update in gradle-wrapper.properties.

    distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
    

提交回复
热议问题