美文网首页
Android Studio报错

Android Studio报错

作者: 一剑卿心 | 来源:发表于2018-03-27 20:15 被阅读123次
  1. Error:Unsupported method: BaseConfig.getApplicationIdSuffix().
The version of Gradle you connect to does not support that method.
To resolve the problem you can change/upgrade the target version of Gradle you connect to.
Alternatively, you can ignore this exception and read other information from the model.
android studio refersh failed.png

解决:找到build.gradle文件,将其中的classpath改为:3.0.0以上

buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.0'
}
}

更改为:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0'
}
}

相关文章

网友评论

      本文标题:Android Studio报错

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