Android 4.0.3 模拟器:安装失败并出现“权限撤销";

Android 4.0.3 emulator: install fails with quot;permission revokequot;(Android 4.0.3 模拟器:安装失败并出现“权限撤销;)
本文介绍了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 模拟器:安装失败并出现“权限撤销";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

相关文档推荐

How To Create a Rotating Wheel Control?(如何创建转轮控件?)
How to avoid restarting activity when orientation changes on Android(如何在 Android 上的方向更改时避免重新启动活动)
iOS: How to run a function after Device has Rotated (Swift)(iOS:设备旋转后如何运行函数(Swift))
iOS 8 Rotation Methods Deprecation - Backwards Compatibility(iOS 8 旋转方法弃用 - 向后兼容性)
Screen orientation lock(屏幕方向锁定)
Strange behavior with android orientation sensor(android方向传感器的奇怪行为)