INSTALL_FAILED_OLDER_SDK

You must Login before you can answer or comment on any questions.

Hi,

I am getting the following error when building for Android on Mac OS X. I have all the latest Android SDKs installed however Titanium doesn't like them. I have Titanium Developer 1.2.1.

INSTALL_FAILED_OLDER_SDK

"Requires newer sdk version #4 (current version is #3)"

Any tips appreciated.

Thanks,

Vidal.

[INFO] Building Cross Platform Dev for Android ... one moment [DEBUG] Waiting for device to be ready ... [TRACE] adb devices returned 1 devices/emulators [DEBUG] Device connected... (waited 0 seconds) [DEBUG] waited 0.008978 seconds on emulator to get ready [DEBUG] /Users/vidal/android-sdk-mac_86/tools/adb -e shell ls /data/app/com.vdggroup.xplatform.apk [DEBUG] com.vdggroup.xplatform installed? False [DEBUG] /Users/vidal/android-sdk-mac_86/tools/adb -e shell ls /sdcard/Ti.debug/com.vdggroup.xplatform/Resources/app.js [DEBUG] com.vdggroup.xplatform resources installed? False [INFO] Copying project resources.. [DEBUG] java -cp /Library/Application Support/Titanium/mobilesdk/osx/1.3.0/android/js.jar org.mozilla.javascript.tools.jsc.Main -opt 9 -nosource -package org.appcelerator.generated -d /Users/vidal/code/titanium/Cross Platform Dev/build/android/bin/classes /Users/vidal/code/titanium/Cross Platform Dev/build/android/bin/assets/Resources/app.js [INFO] Tiapp.xml unchanged, skipping class generation [DEBUG] found splash screen at /Users/vidal/code/titanium/Cross Platform Dev/build/android/bin/assets/Resources/default.png [INFO] Manifest unchanged, skipping Java build [DEBUG] /Users/vidal/android-sdk-mac_86/platforms/android-4/tools/aapt package -f -M AndroidManifest.xml -A /Users/vidal/code/titanium/Cross Platform Dev/build/android/bin/assets -S res -I /Users/vidal/android-sdk-mac_86/platforms/android-4/android.jar -I /Library/Application Support/Titanium/mobilesdk/osx/1.3.0/android/titanium.jar -F /Users/vidal/code/titanium/Cross Platform Dev/build/android/bin/app.ap_ [DEBUG] /Users/vidal/android-sdk-mac_86/tools/apkbuilder /Users/vidal/code/titanium/Cross Platform Dev/build/android/bin/app-unsigned.apk -u -z /Users/vidal/code/titanium/Cross Platform Dev/build/android/bin/app.ap_ -f /Users/vidal/code/titanium/Cross Platform Dev/build/android/bin/classes.dex -rf /Users/vidal/code/titanium/Cross Platform Dev/build/android/src -rj /Library/Application Support/Titanium/mobilesdk/osx/1.3.0/android/commons-codec-1.3.jar -rj /Library/Application Support/Titanium/mobilesdk/osx/1.3.0/android/jaxen-1.1.1.jar -rj /Library/Application Support/Titanium/mobilesdk/osx/1.3.0/android/js.jar -rj /Library/Application Support/Titanium/mobilesdk/osx/1.3.0/android/titanium.jar -rj /Library/Application Support/Titanium/mobilesdk/osx/1.3.0/android/modules/titanium-accelerometer.jar -rj /Library/Application Support/Titanium/mobilesdk/osx/1.3.0/android/modules/titanium-analytics.jar -rj /Library/Application Support/Titanium/mobilesdk/osx/1.3.0/android/modules/titanium-api.jar -rj /Library/Application Support/Titanium/mobilesdk/osx/1.3.0/android/modules/titanium-app.jar -rj /Library/Application Support/Titanium/mobilesdk/osx/1.3.0/android/modules/titanium-database.jar -rj /Library/Application Support/Titanium/mobilesdk/osx/1.3.0/android/modules/titanium-filesystem.jar -rj /Library/Application Support/Titanium/mobilesdk/osx/1.3.0/android/modules/titanium-geolocation.jar -rj /Library/Application Support/Titanium/mobilesdk/osx/1.3.0/android/modules/titanium-gesture.jar -rj /Library/Application Support/Titanium/mobilesdk/osx/1.3.0/android/modules/titanium-json.jar -rj /Library/Application Support/Titanium/mobilesdk/osx/1.3.0/android/modules/titanium-map.jar -rj /Library/Application Support/Titanium/mobilesdk/osx/1.3.0/android/modules/titanium-media.jar -rj /Library/Application Support/Titanium/mobilesdk/osx/1.3.0/android/modules/titanium-network.jar -rj /Library/Application Support/Titanium/mobilesdk/osx/1.3.0/android/modules/titanium-platform.jar -rj /Library/Application Support/Titanium/mobilesdk/osx/1.3.0/android/modules/titanium-ui.jar -rj /Library/Application Support/Titanium/mobilesdk/osx/1.3.0/android/modules/titanium-utils.jar -rj /Library/Application Support/Titanium/mobilesdk/osx/1.3.0/android/modules/titanium-xml.jar -rj /Library/Application Support/Titanium/mobilesdk/osx/1.3.0/android/modules/titanium-yahoo.jar [DEBUG] jarsigner -storepass tirocks -keystore /Library/Application Support/Titanium/mobilesdk/osx/1.3.0/android/dev_keystore -signedjar /Users/vidal/code/titanium/Cross Platform Dev/build/android/bin/app.apk /Users/vidal/code/titanium/Cross Platform Dev/build/android/bin/app-unsigned.apk tidev [DEBUG] /Users/vidal/android-sdk-mac_86/tools/zipalign -v 4 /Users/vidal/code/titanium/Cross Platform Dev/build/android/bin/app.apk /Users/vidal/code/titanium/Cross Platform Dev/build/android/bin/app.apkz [DEBUG] Waiting for device to be ready ... [TRACE] adb devices returned 1 devices/emulators [DEBUG] Device connected... (waited 0 seconds) [DEBUG] waited 0.009437 seconds on emulator to get ready [INFO] Installing application on device [DEBUG] /Users/vidal/android-sdk-mac_86/tools/adb -e install -r /Users/vidal/code/titanium/Cross Platform Dev/build/android/bin/app.apk [TRACE] D/AndroidRuntime( 823): [TRACE] D/AndroidRuntime( 823): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<< [TRACE] D/AndroidRuntime( 823): CheckJNI is ON [TRACE] D/AndroidRuntime( 823): --- registering native functions --- [TRACE] D/PackageParser( 583): Scanning package: /data/app/vmdl45645.tmp [TRACE] W/PackageParser( 583): /data/app/vmdl45645.tmp (at Binary XML file line #7): Requires newer sdk version #4 (current version is #3) [TRACE] D/AndroidRuntime( 823): Shutting down VM [TRACE] D/dalvikvm( 823): DestroyJavaVM waiting for non-daemon threads to exit [TRACE] D/dalvikvm( 823): DestroyJavaVM shutting VM down [TRACE] D/dalvikvm( 823): HeapWorker thread shutting down [TRACE] D/dalvikvm( 823): HeapWorker thread has shut down [TRACE] D/jdwp ( 823): JDWP shutting down net... [TRACE] D/dalvikvm( 823): VM cleaning up [TRACE] D/dalvikvm( 823): LinearAlloc 0x0 used 627404 of 4194304 (14%) [ERROR] Failed installing com.vdggroup.xplatform: pkg: /data/local/tmp/app.apk [TRACE] Failure [INSTALL_FAILED_OLDER_SDK] [TRACE] [TRACE] D/dalvikvm( 583): GC freed 1086 objects / 53416 bytes in 117ms

3 Answers

I solved this by doing the following:

  1. Close the Android emulator
  2. Change the SDK version to 1.6 (or something other than 1.5)
  3. Launch the emulator
  4. Wait for the emulator to fully open, then press "Launch" again

Hope that helps someone!

I solved this, so if anyone hits the same problem. I had an android virtual device that had been created by a previous install of an earlier version of Titanium. I deleted the VD and let Titanium create a new one...

I also had this problem. The Android SDK version selected by default was 1.5. I was able to resolve it by switching to SDK 1.6.

— answered 5 years ago by Mark Waddle
answer permalink
1 Comment
  • I also had this problem.Just change Android 2.1 API level 7 to Android 2.2 API level 8. After running AVD and normaly.

    — commented 2 years ago by leonardo lima

Your Answer

Think you can help? Login to answer this question!