Android “No content provider found for permission revoke”

匿名 (未验证) 提交于 2019-12-03 00:52:01

问题:

I have a simple app HelloWorld Android app in Eclipse (Mac OS X), when I install to the emulator/AVD the app shows up in "Settings->[Devices] Apps" but not in the launcher. I notice in logcat that I get these errors

W/ActivityManager(  160): No content provider found for permission revoke: file:///data/local/tmp/HelloWorld.apk W/ActivityManager(  160): No content provider found for permission revoke: file:///data/local/tmp/HelloWorld.apk I/PackageManager(  160): Running dexopt on: com.example.helloworld D/dalvikvm(  870): DexOpt: load 124ms, verify+opt 459ms, 720236 bytes I/ActivityManager(  160): Force stopping package com.example.helloworld uid=10044 

I have set read/write/execute permissions on the .android directory.

回答1:

In my case I forgot to define main activity. So, I add the following code inside AndroidManifest.xml main activity.

That was the result for Activity definition:



回答2:

I think that the problem is with the install directory permissions. /data/local needs to have write and execute rights to others in order for adb packages to install correctly.

Source

Try this, too: Android - Download App



回答3:

I just found solution to Linux, but I not found for Windows, maybe because in Windows the directories and permissions were confused.

It's work for me: Add the user "Everyone" in folder "C://YourUser//.Android//" with full control, then restart the emulador.



回答4:

I had the same problem on all of my devices. My problem was from the run configuration, I didn't checked the "launch default Activity".



回答5:

I ran into this problem building a new signed APK.

I checked the V2(Full APK signature). Installing the APK on a device did not work anymore.

My solution was to check the V1 (Jar signature) instead. This did work.



回答6:

https://stackoverflow.com/a/8646393/375929 - they say it's about /data/local permissions.

And here: Change /data/local Permissions is how to fix this.



回答7:

My Solution was to remove the android:sharedUserId-Tag in the AndroidManifest.xml...

package="com.my.app"
android:theme="@style/MyAppTheme"
android:versionCode="9"
android:versionName="1.2.5" android:sharedUserId="mc">



回答8:

Working on Cordova and emulator,

For me the problem was that the apk size was large and AVD RAM was too small,

problem happen when install new version of the apk and it failed with the message "No content provider found for permission revoke"

any one of those fixed the problem for me:

  • uninstall the old apk manually before install the new version
  • decrease the apk size
  • increase the device RAM


回答9:

This works for me

Check your manifest application, if it contains this line tools:replace="android:icon"

make it like this by remove this line tools:replace="android:icon"



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