无需更改即可部署android studio 2.1 [英] no changes to deploy android studio 2.1

查看:95
本文介绍了无需更改即可部署android studio 2.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Android Studio 2.1的即时运行未更新设备上的应用程序

我发现AndroidStudio 2.1存在问题。当我以较小的Java代码更改运行应用程序时,有时它不会在设备上更新应用程序。而是显示一条消息

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.

推荐答案

将Android Studio版本升级到3 或更高。此错误已解决。

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

这是2.0版即时运行的错误,并且已报告问题,请检查这些链接

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

要做的事是完全由


设置>构建,执行,部署>即时运行>启用
即时运行

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

您可以在以下链接中提交错误: Google问题跟踪器

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

请检查此答案 https://stackoverflow.com/a/35169716/2826147 将其关闭。

please check this answer https://stackoverflow.com/a/35169716/2826147 to turn it off.

这篇关于无需更改即可部署android studio 2.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆