문제

I've just tried installing my app onto my Motorola Xoom and having problems with the install.

When I install the APK on device and try to start application it crashes with following message.

The application Package installer (process com.android.packageinstaller) has stopped unexpectedly. Please try again

Application installs and run fine on both Emulator and Phone.I am installing application through laptop.

** Additional Info **

I've just found that it doesn't work on the Emulator now either if I start the app from the app list.; It reports 'Application not installed'.It does work though if I start it through Eclipse.

Manifest: (note I've removed my package name and altered Activity names)

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="PACKAGE_NAME_REMOVED" 
      android:versionName="1.0.5" 
      android:versionCode="9">

    <uses-permission 
        android:name="android.permission.ACCESS_WIFI_STATE">
    </uses-permission>
    <uses-permission 
        android:name="android.permission.ACCESS_NETWORK_STATE">
    </uses-permission>
    <uses-permission 
        android:name="android.permission.INTERNET">
    </uses-permission>
    <uses-permission 
        android:name="android.permission.BROADCAST_STICKY">
    </uses-permission>

    <uses-sdk 
        android:targetSdkVersion="8" 
        android:minSdkVersion="5" />


    <application 
        android:label="@string/app_name" 
        android:debuggable="false" 
        android:icon="@drawable/launchericon">

        <activity 
            android:name=".MainActivity"
            android:label="@string/app_name_beta" 
            android:launchMode="singleTop" 
            android:permission="android.permission.BROADCAST_STICKY" 
            android:screenOrientation="portrait" 
            android:configChanges="orientation">

            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name="MyListActivity"          
            android:label="@string/devicelistactivity_label" 
            android:screenOrientation="portrait" 
            android:configChanges="orientation">
        </activity>
        <activity 
            android:name=".interface.InterfacceActivity" 
            android:permission="android.permission.BROADCAST_STICKY" 
            android:screenOrientation="portrait" 
            android:launchMode="singleTop" 
            android:configChanges="orientation">
        </activity>   
    </application>
</manifest>
도움이 되었습니까?

해결책 2

It appears I was using permissions incorrectly. Logcat was reporting a security exception due to my app using stick broadcasts even though I had put stickybroadcast permission in the manifest.

As detailed here, I removed the stickybroadcast permission from the activity and application nodes.

다른 팁

Make sure you get all the Activity name and path right. Clean and Build the project before export

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top