I use com.android.tools.build:gradle:2.0.0-alpha3 and gradle 2.8 before I update to Android Studio 2.0 preview 5. It works fine.
After I update to 2.0 preview 5,it t
Sometimes you must change the gradle versión settings and the wrapper file if you are using a local distribution.
if step 4 is missing, Android studio goes back to gradle-2.8, so i would have to do steps 1-3 every time.
Well it happens to me, i don't know if it is an isolated case.
Your problem is with instant run, because if project builds and APK installs, it can't be Gradle issue.
Instant Run is still under development and has this issue of not working properly.
To disable the instant run:
You can try this: go to project stucture from file-->menu or command-; in mac. Then (don't try changing the android plugin version to 2.10) change the android plugin version to same as your current android gradle build as illustrated in the image below:
If you have 64 bit distro, install 32 bit deps: sudo apt-get install -y lib32gcc1 libc6-i386 lib32z1 lib32stdc++6 sudo apt-get install -y lib32ncurses5 lib32gomp1 lib32z1-dev
There's a quick fix listed on google plus by the android dev team in the comments (post).
Set dexInProcess equal to false in your build.gradle:
dexOptions {
javaMaxHeapSize "4g"
dexInProcess false //the magic line
}
Update your plugin to
classpath 'com.android.tools.build:gradle:2.0.0-alpha6'
You may get “Gradle Version 2.10 is required.” Error. Try this