Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android studio 2.0 bug:no changes to deploy

I download the latest Android Studio 2.0 from Android Develop Website.

But when I change a line of code and use the "instant run", instead of updating the changes, it prompt me "no changes to deploy".

This will happen on code changes and XML changes.

But when I restart Android Studio, things will works fine for once or twice and then "no changes to deploy" Come again!

I used my old SDK on Android Studio older version. JDK is 1.7.0 Windows7 64

So, is anyone has this same bug?

like image 966
Rabbit Avatar asked Apr 11 '16 02:04

Rabbit


4 Answers

A lot of people are having this issue as Instant Run is still quite buggy. The best thing to do would be to disable Instant Run entirely by Preferences > Build, Execution, Deployment > Instant Run > Enable Instant Run

like image 127
Andrew Orobator Avatar answered Sep 22 '22 14:09

Andrew Orobator


Solved by rebuilding Project (menu Build -> Rebuild project)

like image 44
Alexeev Valeriy Avatar answered Sep 23 '22 14:09

Alexeev Valeriy


This sounds like a bug. It would be super helpful to our team if you can report the bug with specific repro steps so we can investigate. Without your help, it's going to be very difficult for us to track down these problems. We want Instant Run to work for you.

You can file a bug at this link: https://code.google.com/p/android/issues/entry?template=Android%20Studio%20Instant%20Run%20Bug

like image 38
James Lau Avatar answered Sep 23 '22 14:09

James Lau


Also having this issue with Android Studio 2.1. Turning off Instant Run seems to have fixed it, which is unfortunate, but I was wasting more time failing to understand why old code was being run than Instant Run was saving me! Running Ubuntu, so agree not just a Windows bug.

like image 42
jeffbl Avatar answered Sep 22 '22 14:09

jeffbl