出错信息:
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'