adb install gives Failure [-12] when deploying an application to phone

by Xavier Ducrohet » Tue, 02 Feb 2010 09:11:25 GMT


Sponsored Links
 the error code are defined in the android.content.pm.PackageManager class.
See here: 
 http://android.git.kernel.org/?p=platform/frameworks/base.git ;a=blob;f=core/java/android/content/pm/PackageManager.java;h=53a966d3db126eb6bce3b7878a4876db27ab4402;hb=eclair#l367

-12 seems to be INSTALL_FAILED_OLDER_SDK meaning that your app
requires a more recent build that your device is running.

This is confirmed by the info you provided, as your device runs
"Firware Version: 1.0", but you compiled your app for 1.1 and 1.5

1.0 is quite obsolete. I would flash something newer on the phone to
test your app. You can see the distribution of the different version
of android at 
 http://developer.android.com/resources/dashboard/platform-versions.html 

Regarding signed application, all applications must be signed to run
on Android. See more information at
 http://developer.android.com/guide/publishing/app-signing.html 

Xav




>



Other Threads

1. The errors when use the aidl, need your help

Firstly, I create an aidl file named mp3PlayerInterface.aidl.
Then I try to use the aidl tool to parsing the aidl-file to java-file.
The error"mp3PlayerInterface should be declared in a file called com
\mp3\player\mp3PlayerI
nterface.aidl."happened no matter use the aidl-command derectly or
eclipse.
How to solve this issue?
--~--~---------~--~----~------------~-------~--~----~

2. Null ptr exception before starting activity

Hi All,

I just deployed my first app on the market tonight. It was running
nice on the emulator and on my G2.
But apparently several users have difficulties starting the app, and I
can't figure out why.

Here is the crash dump:
java.lang.RuntimeException: Unable to start activity ComponentInfo
{com.comp.app/com.comp.app.AppActivity}:
java.lang.NullPointerException
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2268)
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2284)
android.app.ActivityThread.access$1800(ActivityThread.java:112)
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692)
android.os.Handler.dispatchMessage(Handler.java:99)
android.os.Looper.loop(Looper.java:123)
android.app.ActivityThread.main(ActivityThread.java:3948)
java.lang.reflect.Method.invokeNative(Native Method)
java.lang.reflect.Method.invoke(Method.java:521)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:782)
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
dalvik.system.NativeStart.main(Native Method)


Any ideas ?

--~--~---------~--~----~------------~-------~--~----~

3. Android Online Radio

4. feedback system

5. ListView addHeaderView gives ClassCastException when adding LinearLayout

6. How can I give my paid app away for free to some users?

7. mp3 streaming