Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Weird error while installing Android app?

In IntelliJ IDEA I exported signed application (created a new key, etc.), entered command adb install <my_app>.apk and got an error:

1990 KB/s (745096 bytes in 0.365s)
pkg: /data/local/tmp/myapp.apk
Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION]

Google doesn't seem to know about this error. I found the solution where application version in Manifest file was not an integer, but this is not the case with me.

Could I be making a mistake during the creation of new sign key???

EDIT: Here is my Manifest file.

<?xml version="1.0" encoding="utf-8"?>
<manifest
        xmlns:android="http://schemas.android.com/apk/res/android"
        package="org.example.app"
        android:versionCode="1"
        android:versionName="1.0"
        >
    <application
            android:icon="@drawable/icon"
            android:label="@string/app_name"
            >
        <activity
                android:name=".App"
                android:label="@string/app_name"
                >
            <intent-filter>
                <action
                        android:name="android.intent.action.MAIN"/>
                <category
                        android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>

        </activity>

        <activity
                android:label="@string/about"
                android:name="About"
                ></activity>
        <activity
                android:label="@string/preference"
                android:name="Preference"
                ></activity>
        <activity
                android:name="Empl"
                android:label="@string/empl"
                ></activity>
    </application>
    <uses-sdk
            android:minSdkVersion="8"/>

</manifest> 
like image 689
sandalone Avatar asked Jan 25 '11 18:01

sandalone


People also ask

How do I fix app not installing error?

The Android app not installed error can be combated after resetting app permissions. Go to Settings > Apps > Reset App Preferences/Reset Application Permissions. After this, third-party software can be installed on your device.

Why are my apps not installing Android?

Clear Google Play Store App Cache Step 1: Go to the Play Store info menu. Step 2: Select Storage. Step 3: Clear cache from the following menu. You may notice a slow loading time in the Play Store, but the app installation should work fine now.

What is app installation error?

Google Play Store Errors typically contain random numbers and are generated when you try to download apps from the Google Play Store. These errors might be due to Google Play Store updates, Google cache issues, Google Play Store stored data issues, or Google account issues.


2 Answers

After all it was a mistake in the manifest file. This line made it

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

I tried to deploy Android 2.2 app to a mobile phone with Android 2.1. The other project (the test one) was created in IntelliJ which does not force any version by default.

After I deleted the line or changed version to 7, app installed with no problems.

So rookie mistake :ashamed:.

like image 81
sandalone Avatar answered Oct 13 '22 12:10

sandalone


Just faced the same error but for other cause -

was trying to move android versionCode to string.xml for easy editing.

WRONG - android:versionCode="@string/version_code">

RIGHT - android:versionCode="101">

like image 30
Adí Avatar answered Oct 13 '22 14:10

Adí