运行旧的 .apk 文件的 Android Studio 2.1.1 [英] Android Studio 2.1.1 running old .apk file
问题描述
首先,我尝试了 SO 中的所有建议,但没有任何帮助.
Android Studio
不应用我的代码更改是怎么回事?
所以现在仍然没有修复建议有效.甚至我的 File ->使缓存无效/重新启动 ->无效并重新启动
也不起作用.
新的即时运行功能存在一个错误,应用程序没有正确重新加载.您可以在 File > 中禁用 Instant Run设置 >构建、执行、部署 >Instant Run
并取消选中第一个复选框.现在,当您单击 Run
按钮时,应用将正确刷新.
Start of with, I tried all the suggestions in SO and none helped me.
Suggestion1,Suggestion2,Suggestion3.
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.
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.
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.
My Run -> Edit Configuration
So what's up with Android Studio
not applying my code changes?
EDIT:
So for now still no fix suggestion is working. Even my File -> Invalidate Caches / Restart -> Invalidate and Restart
not working either.
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屋!