[英]no changes to deploy android studio 2.1
Android Studio 2.1 instant run is not updating the app on the device Android Studio 2.1即时运行不会更新设备上的应用程序
I observed an issue with AndroidStudio 2.1. 我发现AndroidStudio 2.1存在问题。 When I run the app with small java code changes, it doesn't update app on the device sometimes.
当我使用小的Java代码更改运行应用程序时,它有时不会更新设备上的应用程序。 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.
作为一种解决方法,我每次都要清理构建,以反映应用程序中的更改。
Upgrade Android studio version to 3 or more. 将Android工作室版本升级到3或更高版本 。 this bug is resolved.
这个bug已经解决了。
This was a bug on version 2.0 instant run and issues were reported check these links 这是版本2.0即时运行的错误, 报告的问题检查这些链接
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 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/细节?ID = 206627
thing to do would be to disable Instant Run entirely by 要做的事情就是完全禁用Instant Run
Settings > Build, Execution, Deployment > Instant Run > Enable Instant Run
设置>构建,执行,部署>即时运行>启用即时运行
You can file a bug at this link: Google Issue Tracker 您可以通过以下链接提交错误: Google Issue Tracker
please check this answer https://stackoverflow.com/a/35169716/2826147 to turn it off. 请检查此答案https://stackoverflow.com/a/35169716/2826147将其关闭。
这是Android Studio中的一个错误,我注意到它在构建2.0
有时它无法更新,所以我做的是重建整个项目,还有一件事,如果你启用了multidex
并且你的设备没有运行5 <
它不会工作,确保它被禁用并重建您的项目。
I have just noticed that whenever i closed my app and then run it worked. 我刚刚注意到每当我关闭我的应用程序然后运行它。 See my post here.
在这里看我的帖子。 https://stackoverflow.com/a/37357665/5923606
https://stackoverflow.com/a/37357665/5923606
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.