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!
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.keystoreorC:\Users\<user>\.android\debug.keystoreand has a password ofandroidfor both the keystore and included key.HTH