How to fix Incompatible version of the Android Gradle Plugin after Android Stuido update to 2.1 preview 1 ?

302 views
Skip to first unread message

Eduardo Gorio

unread,
Mar 10, 2016, 8:09:59 PM3/10/16
to android-ndk

I've updated Android Studio to 2.1 preview 1 and i can't run projects with JNI using


classpath 'com.android.tools.build:gradle-experimental:0.6.0-alpha5


How to fix it ?


Best Regards


Gorio

Steven Winston

unread,
Mar 11, 2016, 10:06:59 AM3/11/16
to android-ndk
It seems to work if you switch to gradle-experimental:0.7.0-alpha1.

ama...@gmail.com

unread,
Mar 12, 2016, 8:35:11 PM3/12/16
to android-ndk
I just had a discussion with a Google guy regarding a related bug.  It turns out that the plugins are now linked to the studio version.  There's common code between the normal and experimental plugins.  So make sure when you update that you are on the latest for BOTH plugins (if you use both in the same project).  Otherwise some really off things start to happen (which was what the bug related to).

Ex:
2.0.0-beta6 with 0.6.0-beta6
2.1.0-alpha1 with 0.7.0-alpha1

You can subscribe to the bintray repository to keep track of updates and to see which plugins are paired (they'll be updated simultaneously).
Reply all
Reply to author
Forward
0 new messages