gradle 报错 Error:Unsupported method: BaseConfig.getApplicationIdSuffix()

出错信息:

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.

需要改动的地方:

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

解决办法:


classpath 'com.android.tools.build:gradle:1.1.0'
改成
classpath 'com.android.tools.build:gradle:2.3.3'

猜你喜欢

转载自blog.csdn.net/u010784887/article/details/79362862
今日推荐