Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.2k views
in Technique[技术] by (71.8m points)

no changes to deploy android studio 2.1

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.

Question&Answers:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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://stackoverflow.com/a/35169716/2826147 to turn it off.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...