美文网首页
关于Could not determine the class-

关于Could not determine the class-

作者: 悠悠的一杯茶 | 来源:发表于2017-05-28 13:37 被阅读0次

出现此错误的主要原因是:

一般是将旧版本的gradle项目导入到高版本的AndroidStudio中产生的。

解决方法:

1.在build.gradle文件中,修改classpath;
classpath 'com.android.tools.build:gradle:2.3.0'

1.png
2.打开gradle/wrapper/gradle-wrapper.properties文件,修改distributionUrl。
distributionUrl=http://services.gradle.org/distributions/gradle-3.3-all.zip 2.png

相关文章

网友评论

      本文标题:关于Could not determine the class-

      本文链接:https://www.haomeiwen.com/subject/ajqhfxtx.html