[英]What is the Android plugin version included in IntelliJ IDEA?
[英]This version of the Android Support plugin for IntelliJ IDEA
此版本的 Android Support plugin for IntelliJ IDEA(或 Android Studio)无法打开此项目,请使用 4.3 或更高版本重试。
Gradle 版本是
classpath 'com.android.tools.build:gradle:7.0.0-alpha05'
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.1-all.zip
我正在使用 Android Studio Arctic Fox 2020.3.1 canary 10。我将 Gradle 降级为7.0.0-alpha10
,它运行良好。
检查您的 Android Studio 版本(帮助->关于)例如 4.1.2
将 build.gradle class 路径更新到您的版本: classpath 'com.android.tools.build:gradle:4.1.2'
其中 4.1.2 是在 Help->About 下找到的版本
或者,您可以将 Android Studio 版本更新为建议的版本。
JetBrains 的支持给出了与wandesky类似的答案:
该消息表示 2021.2 版本捆绑的 Android 插件与您的 Gradle 项目使用的 Android 插件不兼容:
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.
类路径“com.android.tools.build:gradle:4.2.1”在 2021.2 IntelliJ IDEA 中应该可以正常工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.