Gradle 發生錯誤
今天載了一個開源專案發生 gradle 錯誤如下
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.
解法
到 build.gradle 把版本號換成目前 android studio 使用的 gradle 版本
classpath 'com.android.tools.build:gradle:2.2.1'
沒有留言:
張貼留言