简体   繁体   中英

This version of the Android Support plugin for IntelliJ IDEA

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

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.

Check your Android Studio Version (Help->About) eg 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.

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.

(source)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM