Android的工作室安装在设备上的apk老 [英] Android Studio is installing old apk on device
问题描述
我同时使用仿真器和Nexus 4设备开发采用Android工作室(0.89构建#AI-135.1404660,内置在9月3,2014)的Android应用程序。
I am developing an Android app using Android Studio (0.89 Build #AI-135.1404660, Built on Sept 3,2014) using both emulator and Nexus 4 device.
我有同样的问题与前一个版本。
I had the same issue with a version prior to that.
问题是,之后我改变了我的code和资源文件,我仍然可以安装在设备或模拟器上老的apk。
The problem is that after I changed my code and resource files, I still get the old apk installed on the device or emulator.
我需要什么做的就是它运行当前code?它是一个建筑配置?
What do I need to do to get it to run current code? Is it a building config?
它是一个已知的问题与Android的工作室?
Is it a known issue with Android Studio?
或者使用的Nexus 4设备?
Or with a Nexus 4 device?
这是它发生第二次,我想下面的步骤之一后解决它(当时)。他们没有为我工作一次。
This is the second time it has happened, and I resolved it(then) after trying one of the steps below. They have not worked for me again.
下面是我试过
- 生成>清理项目>重启的Android工作室>运行
- 构建>重建项目>运行
- 在设备第1步加卸载的apk
- 在设备第2步加Unistalling的apk
- 添加错误的资源条目,然后运行。
我已阅读以下内容:
- Android apk install: How to clear files from old version?
- adb - How to reinstall an app, without retaining the data?
- Device still has the old apk
- Android build doesn't update code base or resources for target .apk on device
无迄今工作。
推荐答案
该行为是不稳定的。我通过审查我的code.It原来,有是无效的资源文件解决它。试着回复到您的code最后工作版本的电流变化之前...也许一个已知问题,将/得到解决完成测试
The behaviour is erratic. I solved it by reviewing my code.It turned out that there was a resource file that was invalid. Try reverting back to the last working version of your code before the current changes... Probably a known issue that will be/was resolved out of Beta
这篇关于Android的工作室安装在设备上的apk老的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!