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


- Android viewpager检测滑动超出范围 2022-01-01
- 使用自定义动画时在 iOS9 上忽略 edgesForExtendedLayout 2022-01-01
- 如何检查发送到 Android 应用程序的 Firebase 消息的传递状态? 2022-01-01
- 想使用ViewPager,无法识别android.support.*? 2022-01-01
- Android - 我如何找出用户有多少未读电子邮件? 2022-01-01
- Android - 拆分 Drawable 2022-01-01
- android 4中的android RadioButton问题 2022-01-01
- 用 Swift 实现 UITextFieldDelegate 2022-01-01
- MalformedJsonException:在第1行第1列路径中使用JsonReader.setLenient(True)接受格式错误的JSON 2022-01-01
- 在测试浓缩咖啡时,Android设备不会在屏幕上启动活动 2022-01-01