Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android 4.0.3 emulator: install fails with "permission revoke"

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:

like image 919
Paul Lammertsma Avatar asked Mar 02 '12 11:03

Paul Lammertsma


1 Answers

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/*
like image 79
Paul Lammertsma Avatar answered Nov 15 '22 07:11

Paul Lammertsma