Reputation: 1132
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.
Upvotes: 19
Views: 44343
Reputation: 31
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.
Upvotes: 1
Reputation: 418
This works for me
Check your manifest application, if it contains this line
tools:replace="android:icon"
<application
android:name=".activities.MyApplication"
android:allowBackup="true"
android:icon="@drawable/launcher_icon"
android:label="@string/app_name"
android:largeHeap="true"
tools:replace="android:icon">
make it like this by remove this line
tools:replace="android:icon"
<application
android:name=".activities.MyApplication"
android:allowBackup="true"
android:icon="@drawable/launcher_icon"
android:label="@string/app_name"
android:largeHeap="true"
>
Upvotes: 0
Reputation: 2042
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".
Upvotes: 1
Reputation: 383
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:
Upvotes: 0
Reputation: 1
My Solution was to remove the android:sharedUserId-Tag in the AndroidManifest.xml...
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.my.app"
android:theme="@style/MyAppTheme"
android:versionCode="9"
android:versionName="1.2.5" android:sharedUserId="mc">
Upvotes: 0
Reputation: 113385
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.
Try this, too: Android - Download App
Upvotes: 5
Reputation: 4317
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.
Upvotes: 1
Reputation: 178
In my case I forgot to define main activity. So, I add the following code inside AndroidManifest.xml main activity.
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
That was the result for Activity definition:
<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>
Upvotes: 6
Reputation: 21066
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.
Upvotes: 0