Failed to apply plugin Android Gradle plugin 3.0.0-alpha5 must not be applied to project
From this reddit thread, killing daemons fixed the problem for me.
./gradlew --stop
This worked for me:
Deactivate Configuration On Demand
In gradle.properties
:
org.gradle.configureondemand=false
Then stop the daemon in a terminal window:
gradlew.bat --stop
Now everything works again.
Versions used:
- Android Studio 3.0 Canary 5
- gradle:
gradle-4.1-milestone-1
- android gradle plugin:
com.android.tools.build:gradle:3.0.0-alpha5
UPDATE
After upgrading to Android Studio 3.0 Beta 2 I can reactivate Configuration on Demand and everything works fine.