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

  • Post author:
  • Post category:其他


出错信息:

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'



版权声明:本文为u010784887原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。