Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

INSTALL_FAILED_OLDER_SDK

 
Pramod P Deore
Ranch Hand
Posts: 632
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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


 
Ankit Garg
Sheriff
Posts: 9514
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Monu Tripathi
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Pramod P Deore
Ranch Hand
Posts: 632
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 632
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
API level 5 is Android 2.0, so, no - you can't use that class on an Android 1.6 device.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic