运行旧的.apk文件的Android Studio 2.1.1 [英] Android Studio 2.1.1 running old .apk file

查看:132
本文介绍了运行旧的.apk文件的Android Studio 2.1.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从一开始,我尝试了SO中的所有建议,但没有一个对我有帮助.
Recommendation1 建议3 .

Start of with, I tried all the suggestions in SO and none helped me.
Suggestion1,Suggestion2,Suggestion3.

我正在做一些调试(只是通过Android Studio在设备上运行应用程序),我注意到一段时间后,我在应用程序中所做的更改并未应用于.apk AS.

I'm doing some debugging (Just running the app on my device through Android Studio) and I noticed that time after time, changes that I made in the app does not applied to the .apk AS is running.

我知道的唯一解决方案是从设备中删除该应用程序,然后再次运行,并使用我在代码中所做的更改进行编译.或者,我重新启动Android Studio,它也修复了该问题.

The only solution I know is to delete the app from my device and then running again and it compiles with the changes I made in the code. Alternatively, I restart Android Studio and it fixes that too.

我尝试了网站上的所有建议,包括:文件->使Chaches无效/重新启动->使无效,并更改我的 Run->编辑配置设置,但未成功.我还在此处阅读了所有文档,但此处仅重复了答案.

I try all suggestions on the site including: file -> invalidate Chaches / Restart -> invalidate, and changing my Run -> Edit Configuration settings but turned out unsuccesfully.I also read all the documentation here but It just repeats the answers here.

我的运行->编辑配置

那么Android Studio不应用我的代码更改怎么办?

So what's up with Android Studio not applying my code changes?


因此,到目前为止,尚无修复建议在起作用.甚至我的File -> Invalidate Caches / Restart -> Invalidate and Restart也不起作用.


So for now still no fix suggestion is working. Even my File -> Invalidate Caches / Restart -> Invalidate and Restart not working either.

推荐答案

新的即时运行功能存在一个错误,该应用程序未正确加载. 您可以在File > Settings > Build, Execution, Deployment > Instant Run中禁用即时运行",然后取消选中第一个复选框.现在,当您单击Run按钮时,该应用程序将正确刷新.

There is a bug with the new Instant Run feature, the app is not reloaded correctly. You can disable Instant Run in File > Settings > Build, Execution, Deployment > Instant Run and uncheck the first checkbox. Now when you click the Run button, the app will be refreshed correctly.

这篇关于运行旧的.apk文件的Android Studio 2.1.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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