Android的工作室安装在设备上的apk老 [英] Android Studio is installing old apk on device

查看:287
本文介绍了Android的工作室安装在设备上的apk老的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我同时使用仿真器和Nexus 4设备开发采用Android工作室(0.89构建#AI-135.1404660,内置在9月3,2014)的Andr​​oid应用程序。

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.

下面是我试过


  1. 生成>清理项目>重启的Andr​​oid工作室>运行

  2. 构建>重建项目>运行

  3. 在设备第1步加卸载的apk

  4. 在设备第2步加Unistalling的apk

  5. 添加错误的资源条目,然后运行。

我已阅读以下内容:


  1. Android APK安装:如何从旧版本清除文件

  2. adb - 如何重新安装应用程序,不保留数据

  3. 设备仍然有旧的apk

  4. Android打造不更新code基或资源上的设备目标的apk

  1. Android apk install: How to clear files from old version?
  2. adb - How to reinstall an app, without retaining the data?
  3. Device still has the old apk
  4. 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屋!

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