简体   繁体   English

Android Studio不运行更新的应用程序版本

[英]Android studio dont run an updated app version

Few weeks ago I finished develop a new app in android studio. 几周前,我完成了在android studio中开发一个新应用的过程。 I moved the project folder into a hard-disk, formated my computer and download android studio again. 我将项目文件夹移至硬盘,格式化了计算机,然后再次下载了android studio。 I have opened the project and run it and it work perfectly, but when I do some changes in the code and run it again, its just run the old version and not the updated. 我已经打开了该项目并运行它,它可以正常运行, 但是当我在代码中进行一些更改并再次运行时,它只是运行旧版本而不是更新版本。 No matter what I edit in the code, its does not affect the app. 无论我在代码中进行什么编辑,它都不会影响应用程序。

What can I do? 我能做什么?

Are you emulating on your computer or the actual device? 您是在计算机上还是在实际设备上进行仿真? If you delete the app off the device and run again maybe that will launch the new version. 如果您从设备上删除该应用并再次运行,则可能会启动新版本。 It seems that android studio is running your old project so somewhere in the run configurations you need to make sure that android studio launches the most recent activity file. 似乎android studio正在运行您的旧项目,因此您需要在运行配置中的某处确保android studio启动最新的活动文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM