Android 4.0.3 emulator: install fails with “permission revoke”

此生再无相见时 提交于 2019-12-17 21:06:32

问题


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] 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!

But unfortunately, neither does Logcat:

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:


回答1:


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/*


来源:https://stackoverflow.com/questions/9532653/android-4-0-3-emulator-install-fails-with-permission-revoke

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!