安卓4.0.3仿真器:安装失败,"同意撤销" [英] Android 4.0.3 emulator: install fails with "permission revoke"

查看:117
本文介绍了安卓4.0.3仿真器:安装失败,"同意撤销"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在4.0.3模拟器上运行我的应用程序通常能正常工作,但一旦在一个蓝色的月亮就突然出现故障,并且从那时起,不断失败。控制台不给任何特别有用的信息:

Running my app on the 4.0.3 emulator typically works fine, but once in a blue moon it abruptly fails, and from then on, keeps failing. The console doesn't give any especially useful information:

[2012-03-02 12时零五分31秒 - 的MyApp]安装错误:INSTALL_FAILED_INSUFFICIENT_STORAG​​E
  [2012-03-02 12点05分31秒 - MyApp的。请logcat的输出更多细节
  [2012-03-02 12点05分31秒 - 的MyApp]!启动取消

[2012-03-02 12:05:31 - MyApp] Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE
[2012-03-02 12:05:31 - MyApp] Please check logcat output for more details.
[2012-03-02 12:05:31 - MyApp] Launch canceled!

但不幸的是,同样没有logcat的:

But unfortunately, neither does Logcat:

W / ActivityManager(1589):没有内容提供商找到许可撤销:文件:///data/local/tmp/MyApp.apk

W/ActivityManager(1589): No content provider found for permission revoke: file:///data/local/tmp/MyApp.apk

我已经设法解决这个问题,到目前为止的唯一方法是删除模拟器,并创建一个新的,或清除用户数据开始从模拟器到之前:

The only way I've managed to fix this so far is to delete the emulator and create a new one, or clear the user data from the emulator prior to starting it:

推荐答案

删去的Dalvik缓存,我设法解决这个问题。在终端,我进入:

By deleting the dalvik cache, I managed to resolve the problem. In the terminal, I entered:

adb root
adb remount
adb shell rm -r /data/dalvik-cache/*

这篇关于安卓4.0.3仿真器:安装失败,"同意撤销"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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