Android 安卓;找不到要撤消权限的内容提供程序“;
我在Eclipse(Mac OS X)中有一个简单的应用程序HelloWorld Android应用程序,当我安装到emulator/AVD时,该应用程序会显示在“设置->[设备]应用程序”中,但不会显示在启动器中。我注意到在logcat中我得到了这些错误Android 安卓;找不到要撤消权限的内容提供程序“;,android,android-emulator,Android,Android Emulator,我在Eclipse(Mac OS X)中有一个简单的应用程序HelloWorld Android应用程序,当我安装到emulator/AVD时,该应用程序会显示在“设置->[设备]应用程序”中,但不会显示在启动器中。我注意到在logcat中我得到了这些错误 W/ActivityManager( 160): No content provider found for permission revoke: file:///data/local/tmp/HelloWorld.apk W/Activi
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
我已经在.android目录上设置了读/写/执行权限 -他们说这是关于/data/local权限的
这里:是如何解决这个问题。我认为问题在于安装目录权限<代码>/data/local需要对其他人具有写入和执行权限,才能正确安装adb软件包
也试试这个:在我的例子中,我忘了定义main活动。因此,我在AndroidManifest.xmlmain活动中添加了以下代码
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
这就是活动定义的结果:
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity android:name="RssfeedActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<activity android:name="DetailActivity"></activity>
</application>
我刚刚找到了Linux的解决方案,但没有找到Windows的解决方案,可能是因为Windows中的目录和权限混淆了
这对我来说很有用:将用户“Everyone”添加到文件夹“C://YourUser//.Android//”中并具有完全控制权,然后重新启动Emulator。我的解决方案是删除AndroidManifest.xml中的Android:sharedUserId标记
在Cordova和emulator上工作 对我来说,问题是apk的大小太大,AVD RAM太小 安装apk的新版本时出现问题,失败时显示消息“找不到可撤销权限的内容提供程序” 其中任何一个为我解决了问题:
- 在安装新版本之前,请手动卸载旧的apk
- 减小apk大小
- 增加设备RAM
tools:replace=“安卓:图标”
拆下这条线,使其像这样
tools:replace=“安卓:图标”
我在构建新的签名APK时遇到了这个问题 我检查了V2(完整的APK签名)。在设备上安装APK不再有效
我的解决方案是检查V1(Jar签名)。这确实有效。谢谢,但我已经阅读并尝试了其中的建议thread@Sean线程,你提到了
.android
和/data/local
目录权限,那么呢?这些都给出了相同的错误吗?我chmod'ed/data/local到755,但是仍然有这个问题。你重新启动了模拟器吗?这并不能真正回答问题。在这种情况下,“检查”是什么意思?你要检查的签名在哪里?“工作”的解决方案意味着什么?我猜他说的是android studio->generate signed apk->sign with V1 optionI刚刚更改了avd
子文件夹的权限和所有权,效果非常好。