Cant install apk with adb

8,688 views
Skip to first unread message

ezyclie

unread,
Sep 12, 2009, 11:39:41 AM9/12/09
to android-platform
I just checked out android code and run make. Everything seems fine
but when i want to install my modified Launcher.apk i got this
message:

$ adb install -r Launcher.apk
1151 KB/s (704077 bytes in 0.597s)
pkg: /data/local/tmp/Launcher.apk
Failure [INSTALL_FAILED_OLDER_SDK]

So here're my questions:
1) Is there any way to check my SDK version?
2) How to launch Android emulator from Android tree(not SDK)?

Note: I use emulator from Android SDK not from Android tree

Thanks in advance!
-ezy

Dianne Hackborn

unread,
Sep 15, 2009, 4:10:51 PM9/15/09
to android-...@googlegroups.com
SDK doesn't really mean SDK, it means the platform only supports an older SDK than the app is using.  You need to make sure the app you are installing isn't built for a newer version of the platform.  You can look in the log output to get some more information about what happened.
--
Dianne Hackborn
Android framework engineer
hac...@android.com

Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails.  All such questions should be posted on public forums, where I and others can see and answer them.

g b

unread,
Feb 24, 2011, 6:32:21 AM2/24/11
to android-...@googlegroups.com
So, SDK means platform API... ok, so i change my targetversion to 8 and:

inutil$ ant install
Buildfile: /home/gcb/code/BmwCodeInterpreter/build.xml
    [setup] Android SDK Tools Revision 10
    [setup] Project Target: Android 2.2
    [setup] API level: 8
...
    [exec] Failure [INSTALL_FAILED_OLDER_SDK]


on `adb logcat` of my nexus one running 2.2.2 i have:
W/PackageParser(   81): /data/app/vmdl28514.tmp (at Binary XML file line #15): Requires newer sdk version #10 (current version is #8)


So, it actually complained about the SDK10, while i'm building for API8... what's happening?


Dianne Hackborn

unread,
Feb 24, 2011, 6:30:02 PM2/24/11
to android-...@googlegroups.com, g b
Your app is setting its minimum SDK version to 10 somewhere.

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.

g b

unread,
Feb 24, 2011, 9:07:07 PM2/24/11
to android-...@googlegroups.com
Indeed it was.

changed the sdk minversion on the manifest from 10 to 8 and it
worked... although the build information remained the very same.

thank you,
Gabriel

Xavier Ducrohet

unread,
Feb 24, 2011, 9:35:19 PM2/24/11
to android-...@googlegroups.com
[setup] API level: 8 in the build means that you are building against
the android.jar for API 8. It doesn't display what your manifest says.

Right now the build system only warns if your app declares that it's
compatible with something lower than what it compiles against (in case
you use newer API than the min platform your app is compatible with).

Xav

--
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.
http://developer.android.com | http://tools.android.com

Please do not send me questions directly. Thanks!

Reply all
Reply to author
Forward
0 new messages