It's not a secret anymore!*
The moose likes Android and the fly likes INSTALL_FAILED_OLDER_SDK Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "INSTALL_FAILED_OLDER_SDK" Watch "INSTALL_FAILED_OLDER_SDK" New topic
Author

INSTALL_FAILED_OLDER_SDK

Pramod P Deore
Ranch Hand

Joined: Jul 15, 2008
Posts: 629

Hello I have created one application when I had ran it on emulator it
runs perfectly, but when I tried to install it on my G1 then it gives
me following error.

D:\Pramod Backup\android\android-sdk-windows\tools>adb install
ReadSimContact.apk
464 KB/s (14833 bytes in 0.031s)
pkg: /data/local/tmp/ReadSimContact.apk
Failure [INSTALL_FAILED_OLDER_SDK]


Then how should I can install this application on my mobile?


Thanks in advance



Life is easy because we write the source code.....
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17

Pramod it seems you've put up the question on other places too like here (and according to me the answer given to you there is right). Please read this...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Monu Tripathi
Rancher

Joined: Oct 12, 2008
Posts: 1369
    
    1

INSTALL_FAILED_OLDER_SDK is an Installation return code passed by PackageManager to the PackageInstallObserver, if the installation of new package failed because the current SDK version is older than that required by the package.

Min SDK Version: This is an integer that indicates the minimum API Level required to properly run your application. The minSdkVersion attribute is found in the <uses-sdk> of your Android Manifest file.

What is the minSdkversion specified in the manifest of your application? What is the device API version?


[List of FAQs] | [Android FAQ] | [Samuh Varta]
Pramod P Deore
Ranch Hand

Joined: Jul 15, 2008
Posts: 629

after chainging to application is successfully get installed on mobile but now it gives me another error as,



how to see device API version?
Monu Tripathi
Rancher

Joined: Oct 12, 2008
Posts: 1369
    
    1

how to see device API version?

Depends on which flavor of Android device is running(you can verify that from Settings -> About Phone -> Firmware version).
... application is successfully get installed on mobile but now it gives me another error as,...

Does your application use external JARs? Chances are that could be causing problems.


Pramod P Deore
Ranch Hand

Joined: Jul 15, 2008
Posts: 629

Its Firmware version is 1.6
can I use "android.provider.ContactsContract" class to build my application? because it's API level is 5.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41053
    
  43
API level 5 is Android 2.0, so, no - you can't use that class on an Android 1.6 device.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: INSTALL_FAILED_OLDER_SDK
 
Similar Threads
if second application installed on phone then first will not found
Android - update SQLite
Deploy Audio files with .apk
Hans53 Emulator will not start
problem parsing the package in android