简体   繁体   English

可以使用带有IntelliJ的Android Gradle Plugin 3.0.0

[英]Is it possible to use Android Gradle Plugin 3.0.0 with IntelliJ

I am trying to use plugin com.android.tools.build:gradle:3.0.0-alpha4 in IntelliJ. 我试图在IntelliJ中使用插件com.android.tools.build:gradle:3.0.0-alpha4。 But I've got the error 但我有错误

Error:This Gradle plugin requires Studio 3.0 minimum

The android gradle plugin version 2.3.3 supports Intellij. android gradle插件版本2.3.3支持Intellij。

I need IntelliJ due to I want to use AspectJ + Java 8 in IDE. 我需要IntelliJ,因为我想在IDE中使用AspectJ + Java 8。 Android Studio IDE doesn't support AspectJ yet, only gradle plugin. Android Studio IDE尚不支持AspectJ,只支持gradle插件。

Is it possible to use new version Android Gradle Plugin 3.0.0 with exactly IntelliJ , not Android Studio? 是否可以使用新版Android Gradle Plugin 3.0.0与IntelliJ ,而不是Android Studio?

Thank you. 谢谢。

Android Studio 3.0 features will be merged in IntelliJ IDEA 2017.3.x which is not released yet, you can't update just Android plug-in separately, since it's a bundled plug-in and the synchronization with Android Studio is performed manually at JetBrains. Android Studio 3.0功能将在IntelliJ IDEA 2017.3.x中合并,尚未发布,您无法单独更新Android插件,因为它是捆绑式插件,并且与Jet Studio的同步是在JetBrains上手动执行的。

You can track the progress here . 您可以在此处跟踪进度

As workaround you can add in gradle.properties this option: android.injected.build.model.only.versioned=3 作为解决方法,您可以在gradle.properties中添加以下选项: android.injected.build.model.only.versioned=3

Full answer: https://stackoverflow.com/a/46634836/4050911 完整答案: https//stackoverflow.com/a/46634836/4050911

正如错误所述,您必须下载Android Studio 3.0(Canary)才能使用gradle插件3.0.0。

您需要根据错误“3.0.0”更新文件模块级别和项目级别的gradle版本,然后尝试构建项目

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

相关问题 Android Gradle插件3.0.0更新问题 - Android Gradle plugin 3.0.0 update issue 无法使用Android Gradle Plugin 3.0。+使用IntelliJ IDEA - Can't use Android Gradle Plugin 3.0.+ with IntelliJ IDEA android gradle插件版本3.0.0-alpha1太旧了 - The android gradle plugin version 3.0.0-alpha1 is too old 如何使用 Android Gradle 插件 3.0.0 将所有风味变体发布到 maven? - How to publish all flavor variants to maven with Android Gradle plugin 3.0.0? IntelliJ新的android gradle插件(0.14。+) - IntelliJ new android gradle plugin (0.14.+) SonarQube - Android 不适用于 gradle 3.0.0 - SonarQube - Android not working for gradle 3.0.0 应用插件失败 Android Gradle 插件 3.0.0-alpha5 不能应用到项目 - Failed to apply plugin Android Gradle plugin 3.0.0-alpha5 must not be applied to project 使用Android Studio 3.0中的Android Gradle插件3.0.0打破了Android多项目测试依赖项设置 - Android multi project test dependency setup breaks with Android Gradle Plugin 3.0.0 in Android Studio 3.0 android gradle plugin 3.0.0-alpha2:错误膨胀类android.support.v4.widget.NestedScrollView - android gradle plugin 3.0.0-alpha2: Error inflating class android.support.v4.widget.NestedScrollView androidTest与gradle插件3.0.0的Multidex问题 - Multidex issue for androidTest with gradle plugin 3.0.0
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM