Code2care : TechZone Apps & Tutorials

Android : Installation error: INSTALL_FAILED_OLDER_SDK on Device




[2014-12-30 13:41:07 - AndApp] Android Launch!
[2014-12-30 13:41:07 - AndApp] adb is running normally.
[2014-12-30 13:41:07 - AndApp] Performing com.code2care.puzzle.app.MainActivity activity launch
[2014-12-30 13:41:21 - AndApp] WARNING: Unknown device API version!
[2014-12-30 13:41:21 - AndApp] Uploading AndApp.apk onto device 'S7514708552ce'
[2014-12-30 13:41:21 - AndApp] Installing AndApp.apk...
[2014-12-30 13:41:23 - AndApp] Installation error: INSTALL_FAILED_OLDER_SDK
[2014-12-30 13:41:23 - AndApp] Please check logcat output for more details.
[2014-12-30 13:41:23 - AndApp] Launch canceled!


If you are trying to run an Android Project on your device or emulator and you get the above error on your eclipse console, then the reason for such error is that your device Android Operating system SDK Version is Older and is not supported by the App, lets look into more details,

Why this error message ?


Just check your AndroidManifest.xml file and look for <uses-sdk> tag. It should have two attributes android: minSdkVersion and android: targetSdkVersion

<uses-sdk
    android:minSdkVersion="11"
    android:targetSdkVersion="21" />


In order to run the app on your device, the android:minSdkVersion should be less than or equal to the SDK version of the OS running on your device. For the above case if your device is running on Froyo it has an API level 8 where as the app requires minimum API level as 11 i.e. Gingerbread, hence the App would not get installed and you will get the error.



How to resolve this issue ?


To resolve this issue you can either change the minSdkVersion to that of the device you are trying to run the App, or if you can create a new emulator device that is higher of equal to the API level defiled in Manifest file.

Note : You may get errors in your project folder as certain lines of code may not be compatible with the Older versions, so you may need to handle it first before getting it work on the device.





Top




Posts related to android.


1. Share image and text Twitter using your Android Application Programatically

2. The Android Virtual Device 'myEmulator' is currently running an emulator and cannot be deleted.

3. Make Android View Scrollable both Horizontally and Vertically

4. Can we move apps like WhatsApp, Facebook to external MicroSD card

5. Parsing Data for android-21 failed unsupported major.minor version 51.0

6. Android : Prevent App for rotation landscape or portrait

7. ADT quit unexpectedly error on Mac OSX Android Eclipse SDK

8. Android-Failed to install apk on device EOF Timeout Error

9. How to change Android EditText Cursor Color

10. JavaDocs for Android SDK Eclipse IDE

11. Two Buttons next to each other in Android Layout

12. Change Title text for Android Activity using java code

13. How to add Newline to text in Android TextView

14. Android : Unable to load VM from snapshot : Mac OS X Error

15. INVALID FILE NAME: MUST CONTAIN ONLY [a-z0-9_.] Android Eclipse Error

16. Hide Tittle bar and Navigation bar from android activity

17. appcompat_v7 errors after updates to API level 21 Material Theme

18. How to Copy Text to Android Clipboard Programatically ClipboardManager (Both Old and New SDK)

19. [Solution] Running Android Lint has encountered a problem NullPointerException Error

20. Remove Trailing zeros BigDecimal Java

    more...






Popular tags
android
x 175
eclipse
x 29
notepadplusplus
x 20
macosx
x 14
sharepoint
x 14
html
x 14
mac
x 13
androidstudio
x 11




1000+ C Programs     PHP Tutorial     JSON Tutorial     Swift Tutorial     India Pinocdes     About Us     Privacy Policy


Code2care © 2012-17