无法确定接口com.android.builder.model.AndroidProject的类路径 [英] Could not determine the class-path for interface com.android.builder.model.AndroidProject
问题描述
当我将Eclipse项目导入Android Studio时,出现以下问题:
Gradle'XNote'项目刷新失败
错误:无法确定类-com.android.builder.model.AndroidProject接口的路径。
任何人都知道为什么会这样吗?谢谢!
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 interface com.android.builder.model.AndroidProject.
Anyone knows why it happened? Thanks!
推荐答案
现在我正面临着同样的问题。
Just now i am facing the same problem.
1。检查build.gradle中的类路径文件。
更改为
1.Check classpath in build.gradle file. change to
classpath'com.android.tools.build:gradle:2.3.0'
classpath 'com.android.tools.build:gradle:2.3.0'
- 然后转到gradle-wrapper.properties,并更改distributionUrl
distributionUrl = http://services.gradle.org/distributions/gradle-3.3-all.zip
distributionUrl=http://services.gradle.org/distributions/gradle-3.3-all.zip
,然后重新生成项目。它对我有帮助...
我认为这一定会对您有所帮助。
and then rebuild the project. its help for me... I think this will definitely helps you.
这篇关于无法确定接口com.android.builder.model.AndroidProject的类路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!