no changes to deploy android studio 2.1
Asked Answered
B

3

6

Android Studio 2.1 instant run is not updating the app on the device

I observed an issue with AndroidStudio 2.1. When I run the app with small java code changes, it doesn't update app on the device sometimes. Instead it shows a message

No changes to deploy // (Don't show again)

Am I missing any thing here? As a work around I do clean build every time in order to reflect the changes in app.

Berzelius answered 13/5, 2016 at 10:17 Comment(1)
#36624417Andre
H
7

Upgrade Android studio version to 3 or more. this bug is resolved.

This was a bug on version 2.0 instant run and issues were reported check these links

https://code.google.com/p/android/issues/detail?id=199884 https://code.google.com/p/android/issues/detail?id=195062 https://code.google.com/p/android/issues/detail?id=206698 https://code.google.com/p/android/issues/detail?id=209413 https://code.google.com/p/android/issues/detail?id=206627

thing to do would be to disable Instant Run entirely by

Settings > Build, Execution, Deployment > Instant Run > Enable Instant Run

You can file a bug at this link: Google Issue Tracker

please check this answer https://mcmap.net/q/100813/-instant-run-in-android-studio-2-0-how-to-turn-off to turn it off.

Hyetology answered 13/5, 2016 at 10:37 Comment(4)
is this bug repaired in newer versions of android studio (3.* etc.)??Indolence
I am using A.S. 3.0.1 and issue still persistSubject
@Subject try resinstalling android studioHyetology
@AmitVaghela thx for reply. In my case should was a gradle issue, i solved it deleting Gradle's cache.Subject
R
1

Thats a bug in Android Studio, I noticed it in build 2.0 sometimes it failed to update, so what i do is I rebuild the entire project, one more thing, if you have multidex enabled and your device is not running 5 <it will not work, make sure its disabled and rebuild your project.

Rubeola answered 15/5, 2016 at 12:41 Comment(0)
S
0

I have just noticed that whenever i closed my app and then run it worked. See my post here. https://mcmap.net/q/103269/-android-studio-not-deploying-changes-to-app

Selfrevealing answered 21/5, 2016 at 0:29 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.