SirSergio
SirSergio

Reputation: 159

"Application was not installed" Android devices error

I have an android application which works perfectly on an AVD using Android 2.3.3, but it fails to install on any devices available for me to test(Sony Ericsson XPeria running Android 2.3.3, LG Optimus running Android 2.3.7 and Samsung Galaxy Tab Android 4.0.3). The error is "Application was not installed". As far as I know it may be connected with incorrect manifest file of an application, so here goes my AndroidManifest.xml if it might help:

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

<uses-sdk android:minSdkVersion="7" />
            <uses-permission
    android:name="android.permission.INTERNET" />

<application
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name" >
    <activity
        android:name=".HohloColaActivity"
        android:label="@string/app_name" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>

I export my application unsigned.
Thanks in advance!

Upvotes: 0

Views: 3906

Answers (3)

David Conrad
David Conrad

Reputation: 16419

Android apps must be signed. See the Android App Signing docs for more information.

Upvotes: 2

devunwired
devunwired

Reputation: 63303

You cannot install an unsigned APK on a real device, you must export the APK using a valid key. This can even be the same keystore/key that you use in debug mode, which is located (by default) at ~/.android/debug.keystore or C:\Users\<user>\.android\debug.keystore and has a password of android for both the keystore and included key.

HTH

Upvotes: 6

Alexander
Alexander

Reputation: 1329

Have a look at logcat. My problem was in wrong permissions. I defined android.permission.INTERNET in application tag instead of separate uses-permission. Logcat output raises exception when you try to start app:

E/Launcher(  136): java.lang.SecurityException: Permission Denial: <...> requires android.permission.INTERNET

So try to find out what prevents your app from starting using adb logcat.

I've read this post too 'App not Installed' Error on Android and there are lots of possibiliteis. Someone even have had to update Java.

Upvotes: 1

Related Questions