When will Idea 2017 catch up with the current Android gradle plugin?

已回答

I currently need to use Android Studio for Android projects, as IDEA (currently at 2017.1.1) doesn't work with the android gradle plugin version 2.3.1. I'd prefer to use the latter (as I have it more customised with plugins, live templates etc than AS).

I'm a little confused about the relationship between Google's code (the plugin etc) and JetBrains' (the IDE). Is there a published schedule or some other way I can check back to find out when I can use IDEA again?

0

Could you please clarify what exactly doesn't work and what errors do you get with the current IntelliJ IDEA version? Is there any sample project we can use to reproduce it?

0
Avatar
Permanently deleted user

Oops. I had intended to include the error message. It's:

Error running app: This version of Android Studio is incompatible with the Gradle Plugin used. Try disabling Instant Run (or updating either the IDE or the Gradle plugin to the latest version)

Any project using the latest Android gradle plugin (version 2.3.1) gets this when trying to run (compile stage is fine). 

To reproduce:

- create a new Android project from any of the built-in templates

- change the classpath in the top level build gradle file to `com.android.tools.build:gradle:2.3.1`

- change the distributionUrl in the gradle-wrapper.properties to `https\://services.gradle.org/distributions/gradle-3.3-all.zip`

- sync gradle

- build & run

 

Or download and try this example project.

0

From what I can see in the VCS log, Android Studio 2.3 merge is work in progress:

It should appear in IntelliJ IDEA 2017.2 release (2017.2 EAP should start in ~2 weeks).

0
Avatar
Permanently deleted user

Thank you Serge.

Might I request that this be made discoverable more easily than by getting errors? Perhaps, for example, the highest compatible android gradle plugin could be specified in the Release Notes?

0

We'll consider it, thanks.

0

Hi Crispin, is it possible for you to turn off Instant Run as it's suggested? It works for me.

0
Avatar
Permanently deleted user

Dmitry - Instant Run has really transformed Android development, making it much less frustrating, at least for phases of a project (prototyping, polishing) where you need to repeatedly play with an app's UX etc. For these phases I'd rather just use Android Studio for now until IDEA merges the latest Google stuff in. 

Thanks for the suggestion.

1

请先登录再写评论。