简体   繁体   English

此版本的 Android 支持 IntelliJ IDEA 插件

[英]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.此版本的 Android Support plugin for IntelliJ IDEA(或 Android Studio)无法打开此项目,请使用 4.3 或更高版本重试。

The Gradle version is Gradle 版本是

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.我正在使用 Android Studio Arctic Fox 2020.3.1 canary 10。我将 Gradle 降级为7.0.0-alpha10 ,它运行良好。

Check your Android Studio Version (Help->About) eg 4.1.2检查您的 Android Studio 版本(帮助->关于)例如 4.1.2

Update build.gradle class path to your version: classpath 'com.android.tools.build:gradle:4.1.2'将 build.gradle class 路径更新到您的版本: classpath 'com.android.tools.build:gradle:4.1.2'

where 4.1.2 is the version found under Help->About其中 4.1.2 是在 Help->About 下找到的版本

Alternatively, you could just update your Android Studio Version to what is suggested.或者,您可以将 Android Studio 版本更新为建议的版本。

JetBrains's support gave the similar answer as wandesky : JetBrains 的支持给出了与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:该消息表示 2021.2 版本捆绑的 Android 插件与您的 Gradle 项目使用的 Android 插件不兼容:

com.android.tools.build:gradle:7.0.0 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. 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.类路径“com.android.tools.build:gradle:4.2.1”在 2021.2 IntelliJ IDEA 中应该可以正常工作。

(source) (资源)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 IntelliJ IDEA 中包含的 Android 插件版本是什么? - What is the Android plugin version included in IntelliJ IDEA? 无法解决“此版本的 Android 支持 IntelliJ IDEA 插件无法打开此项目,请使用 4.1 或更高版本重试。” - Cannot solve 'This version of the Android Support plugin for IntelliJ IDEA cannot open this project, please retry with version 4.1 or newer.' 无法识别的 Android Studio(或 IntelliJ IDEA 的 Android 支持插件)错误 - Unrecognized Android Studio (or Android Support plugin for IntelliJ IDEA) error Android Support plugin for IntelliJ IDEA (or Android Studio) 打不开这个项目 - Android Support plugin for IntelliJ IDEA (or Android Studio) cannot open this project 在IntelliJ IDEA中为Android应用程序支持威尔士语言 - Support for Welsh language in IntelliJ IDEA for an Android app IntelliJ IDEA 12-不兼容的Android版本错误 - IntelliJ IDEA 12 - Incompatible Android version error 项目创建时的 Intellij Android Support 插件异常 - Intellij Android Support plugin exception on project creation 在Intellij中使用android.support.v4库 - using android.support.v4 library in Intellij idea 如何在intellij想法中使用android.support.v7 - how to use android.support.v7 in intellij idea 使用IntelliJ IDEA Ultimate版中的android.support.design库 - using android.support.design library in intellij IDEA Ultimate edition
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM