Using the latest Android Studio 3.0 Canary 5
Here's the error:
Error:(1, 1) A problem occurred evaluating project ':app'.
Failed to apply plugin [class 'com.android.build.gradle.api.AndroidBasePlugin'] Android Gradle plugin 3.0.0-alpha5 must not be applied to project [path_to_my_project] since version 3.0.0-alpha5 was already applied to this project
Tried: cleaning, rebuilding, opening/closing. Not working.
any ideas ?
[LATER EDIT] Solution: Migrate to Canary 8+ and all should be ok.
Open a terminal and write
In gradle.properties make sure you don't have funny stuff
Notice that there are no custom jvmargs...
Include the google() repo in build.gradle (project one)
there's how mine look like
build.gradle
lastly the support library versions in the app build.gradle file
build.gradle