Android Studio开发过程中Gradle Sync报错解决方法

本文会汇总遇见的报错问题及其解决方案,不断更新

更新于2018年12月3日

(1)

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

解决方法:

A:设置project srtucture如下

Android Studio开发过程中Gradle Sync报错解决方法_第1张图片Android Studio开发过程中Gradle Sync报错解决方法_第2张图片

B:手动设置

打开gradle-wrapper.properties修改如下

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

打开build.gradle(Project)修改如下

    dependencies {
        classpath 'com.android.tools.build:gradle:3.2.1'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }

注:我用的是B方法,如果不行可以AB同时操作

 

(2)

Gradle sync failed: Could not determine the class-path for class org.jetbrains.plugins.gradle.model.ProjectImportAction.

解决方式同(1),更新到最新版本即可

你可能感兴趣的:(原创,环境配置)