简体   繁体   中英

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. 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.

I need IntelliJ due to I want to use AspectJ + Java 8 in IDE. Android Studio IDE doesn't support AspectJ yet, only gradle plugin.

Is it possible to use new version Android Gradle Plugin 3.0.0 with exactly IntelliJ , not 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.

You can track the progress here .

As workaround you can add in gradle.properties this option: android.injected.build.model.only.versioned=3

Full answer: https://stackoverflow.com/a/46634836/4050911

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

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

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