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

查看:19
本文介绍了无需更改部署 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=195062https://code.google.com/p/android/issues/详细信息?id=206698https://code.google.com/p/android/issues/详细信息?id=209413https://code.google.com/p/android/issues/详细信息?id=206627

要做的是完全禁用 Instant Run

thing to do would be to disable Instant Run entirely by

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

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天全站免登陆