Could not determine the class-path for interface com.android.builder.model.AndroidProject

后端 未结 7 432
梦谈多话
梦谈多话 2021-01-30 08:10

When I import an Eclipse project into Android Studio, I got this problem: Gradle \'XNote\' project refresh failed Error:Could not determine the class-path for interfa

7条回答
  •  礼貌的吻别
    2021-01-30 08:57

    Just Update two things:-

    1) Update your Build.gradle to

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

    2) Update Gradle-wrapper.properties: (Change Android mode > Project mode then Extend Gradle and open Gradle-wrapper.properties)

    Replace distributionUrl=http\://services.gradle.org/distributions/gradle-1.12-all.zip By

    distributionUrl=http://services.gradle.org/distributions/gradle-3.3-all.zip
    

    This always resolves the issue. may it usefull for you

提交回复
热议问题