Android 4.0.3 模拟器:安装失败并出现“权限撤销"; [英] Android 4.0.3 emulator: install fails with "permission revoke"

查看:17
本文介绍了Android 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:05:31 - MyApp] 安装错误:INSTALL_FAILED_INSUFFICIENT_STORAGE
[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):未找到用于权限撤销的内容提供者:file:///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/*

这篇关于Android 4.0.3 模拟器:安装失败并出现“权限撤销";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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