Reputation: 83
This version of the Android Support plugin for IntelliJ IDEA (or Android Studio) cannot open this project, please retry with version 4.3 or newer.
The Gradle version is
classpath 'com.android.tools.build:gradle:7.0.0-alpha05'
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.1-all.zip
Upvotes: 4
Views: 19947
Reputation: 1136
JetBrains's support gave the similar answer as wandesky:
The message means that the Android plugin bundled with 2021.2 version is not compatible with the Android Gradle plugin used by your Gradle project:
com.android.tools.build:gradle:7.0.0
You will need to either use lower Gradle plugin version or use Android Studio IDE to develop this project until IntelliJ IDEA merges latest updates of Android plugin from the Android Studio IDE.
The classpath 'com.android.tools.build:gradle:4.2.1' should work fine in 2021.2 IntelliJ IDEA.
Upvotes: 0
Reputation: 102
Check your Android Studio Version (Help->About) e.g. 4.1.2
Update build.gradle class path to your version:
classpath 'com.android.tools.build:gradle:4.1.2'
where 4.1.2 is the version found under Help->About
Alternatively, you could just update your Android Studio Version to what is suggested.
Upvotes: 4
Reputation: 1898
I'm using Android Studio Arctic Fox 2020.3.1 canary 10. I downgraded the Gradle to 7.0.0-alpha10
and it worked well.
Upvotes: 4