Udinic / AccountAuthenticator

812 stars 216 forks source link

Android Studio 3.0 throws build error after getting dependencies #16

Closed zaszlo closed 3 years ago

zaszlo commented 6 years ago

Gradle 'AccountAuthenticator-master' project refresh failed

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.

zaszlo commented 6 years ago

The fix:

In the build.gradle replace the classpath to a newer version, like so:

dependencies {
    classpath 'com.android.tools.build:gradle:3.0.1'
}

Then let Android Studio correct the other occurrences of the old versions and it will work.