When I'm trying to use Android Gradle Plugin 3.0.+ with Intellij IDEA, I'm getting error: Error:This Gradle plugin requires Studio 3.0 minimum
But my version of IntelliJ is higher than 2017.2 and it should work with gradle plugin for AS 3.0.
When I'm trying to use Android Gradle Plugin 3.0.+ with Intellij IDEA, I'm getting error: Error:This Gradle plugin requires Studio 3.0 minimum
But my version of IntelliJ is higher than 2017.2 and it should work with gradle plugin for AS 3.0.
It can be fixed by adding this option to your
gradle.properties
:Explanation:
From Reddit /r/androiddev
Full answer with comments from Android Studio team
UPDATE
IntelliJ IDEA 2018.1+ supports Android Gradle Plugin 3.0+!
Adding the
android.injected.build.model.only.versioned=3
property in thegradle.properties
file (as suggested here) will get the Gradle sync working but you may run into issues when trying to deploy your Android app onto a device or emulator from within IntelliJ. For that you'll probably have to use Android Studio 3.x or one of theinstall
Gradle tasks... until a version of IntelliJ IDEA is released that supports Android 3.x features (keep an eye on this JetBrains issue).