This version of the Android Support plugin for IntelliJ IDEA (or Android Studio) cannot open this project, please retry with version 2020.3.1 or newer.

Answered

I am getting such a message with the latest version of idea: IntelliJ IDEA 2021.2 (Ultimate Edition) Build #IU-212.4746.92, built on July 27, 2021

gradle-wrapper.properties:

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
android.enableD8.desugaring=true
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-all.zip
org.gradle.configureondemand=false

build.gradle:

dependencies {
classpath 'com.android.tools.build:gradle:7.0.0'
classpath 'com.google.gms:google-services:4.3.5'
classpath 'org.jacoco:org.jacoco.core:0.8.6'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.5.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jlleitschuh.gradle:ktlint-gradle:10.0.0"
}

I have seen posts about Android Studio Canary but I don't know how that applies to Idea.

Any help is appreciated

 

0
2 comments

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.

0

The

classpath 'com.android.tools.build:gradle:4.2.1'
should work fine in latest IntelliJ IDEA.
 
0

Please sign in to leave a comment.