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 target newer versions in .gitlab-ci.yml using auto devops (java 11 instead of 8 and Android 31 instead of 29)(如何在.gitlab-ci.yml中使用自动开发工具(Java 11而不是8,Android 31而不是29)瞄准较新的版本)
Android + coreLibraryDesugaring: which Java 11 APIs can I expect to work?(Android+core LibraryDesugering:我可以期待哪些Java 11API能够工作?)
How to render something in an if statement React Native(如何在If语句中呈现某些内容Reaction Native)
How can I sync two flatList scroll position in react native(如何在本机Reaction中同步两个平面列表滚动位置)
Using Firebase Firestore in offline only mode(在仅脱机模式下使用Firebase FiRestore)
Crash on Google Play Pre-Launch Report: java.lang.NoSuchMethodError(Google Play发布前崩溃报告:java.lang.NoSuchMethodError)