Titanium JIRA Archive
Appcelerator Community (AC)

[AC-4599] Android SDK version Android L (Preview) not found.

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionCannot Reproduce
Resolution Date2016-11-21T20:39:28.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsStudio, Titanium SDK & CLI
Labelsn/a
ReporterJick Steen
AssigneeShak Hossain
Created2016-11-08T20:11:00.000+0000
Updated2016-11-21T20:39:28.000+0000

Description

It works fine to run my app in the emulator, but when packing for the Android App Store I am getting the following error: Android Distribution... has encountered a problem Android SDK version Android L (Preview) not found. I have Android API 24 + 25 fully installed. With latest Android SDK tools 7.1.1 is no longer "preview" though. Tried with different versions of android:minSdkVersion="24" android:targetSdkVersion="24" but nothing worked. Worked fine before with latest Titanium 5.X setup

Attachments

FileDateSize
androidInfo.txt2016-11-18T16:25:32.000+00008466
appcConfig.txt2016-11-18T16:25:43.000+00003880
Screenshot at Nov 09 11-17-29.png2016-11-08T22:18:25.000+0000287232
Screenshot at Nov 09 11-17-38.png2016-11-08T22:18:24.000+0000133761
studioDiagnostic.txt2016-11-18T16:25:39.000+0000133927
sudioLogFile.txt2016-11-18T16:25:41.000+000029724

Comments

  1. Sharif AbuDarda 2016-11-08

    Hello, Can you attach the screenshot of your Android SDK manager? with all the installed APIs and SDK tools installed. Thanks.
  2. Jick Steen 2016-11-08

    Sure, added screenshots
  3. Jick Steen 2016-11-15

    FYI: This is still happening with the 6.0 GA release
  4. Sharif AbuDarda 2016-11-18

    Hello, I have tested the issue of production build in Android, I did not see such error. The apk packages successfully and runs on device fine. Here is myy log,
       Operating System
         Name                        = Mac OS X
         Version                     = 10.11.6
         Architecture                = 64bit
         # CPUs                      = 4
         Memory                      = 8589934592
       Node.js
         Node.js Version             = 4.2.2
         npm Version                 = 2.14.7
       Titanium CLI
         CLI Version                 = 5.0.10
       Titanium SDK
         SDK Version                 = 6.0.0.GA
         SDK Path                    = /Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA
         Target Platform             = android
       Command
         /usr/local/bin/node /Users/gsl001/.appcelerator/install/6.0.0/package/node_modules/titanium/lib/titanium.js build run --platform android --sdk 6.0.0.GA --log-level trace --project-dir /Users/gsl001/Documents/Appcelerator_Studio_Workspace/sha151 --deploy-type production --target dist-playstore --android-sdk /Users/gsl001/Documents/android-sdk-macosx --output-dir /Users/gsl001/Downloads --api-level 10 --alias darda --keystore /Users/gsl001/Downloads/Untitledggggg --store-password 123456 --key-password 123456 --no-colors --no-progress-bars --no-prompt --no-banner --prompt-type socket-bundle --prompt-port 52636 --config-file /var/folders/gw/3ksrznsd21v_bdlfq6ww1l080000gn/T/build-1479496936555.json --no-banner --project-dir /Users/gsl001/Documents/Appcelerator_Studio_Workspace/sha151
       [WARN] :   Building with Android SDK API 24 which hasn't been tested against Titanium SDK 6.0.0
       [INFO] :   Found Titanium module id=ti.cloud version=3.2.9 platform=commonjs deploy-type=production path=/Users/gsl001/Library/Application Support/Titanium/modules/commonjs/ti.cloud/3.2.9
       [INFO] :   Found better matching module id=ti.cloud version=latest platform=commonjs deploy-type=production path=/Users/gsl001/Library/Application Support/Titanium/modules/commonjs/ti.cloud/3.2.11
       [INFO] :   Deploy type: production
       [INFO] :   Building for target: dist-playstore
       [INFO] :   Targeting Android SDK API: 24
       [INFO] :   Building for the following architectures: armeabi-v7a, x86
       [INFO] :   Signing with keystore: /Users/gsl001/Downloads/Untitledggggg (darda)
       [INFO] :   Debugging disabled
       [INFO] :   Profiler disabled
       [INFO] :   Forcing rebuild: target changed since last build
       [INFO] :     Was: device
       [INFO] :     Now: dist-playstore
       [INFO] :   JavaScript files need to be encrypted
       [WARN] :   Overwriting file /Users/gsl001/Documents/Appcelerator_Studio_Workspace/sha151/build/android/bin/assets/Resources/KS_nav_ui.png
       [WARN] :   Overwriting file /Users/gsl001/Documents/Appcelerator_Studio_Workspace/sha151/build/android/bin/assets/Resources/KS_nav_views.png
       [WARN] :   Overwriting file /Users/gsl001/Documents/Appcelerator_Studio_Workspace/sha151/build/android/bin/assets/Resources/Sounds.mp3
       [WARN] :   Overwriting file /Users/gsl001/Documents/Appcelerator_Studio_Workspace/sha151/build/android/bin/assets/Resources/bigbuckbunny.mp4
       [WARN] :   Overwriting file /Users/gsl001/Documents/Appcelerator_Studio_Workspace/sha151/build/android/bin/assets/Resources/appicon.png
       [WARN] :   Overwriting file /Users/gsl001/Documents/Appcelerator_Studio_Workspace/sha151/build/android/bin/assets/Resources/ti.cloud/LICENSE
       [WARN] :   Overwriting file /Users/gsl001/Documents/Appcelerator_Studio_Workspace/sha151/build/android/bin/assets/Resources/ti.cloud/manifest
       [WARN] :   Overwriting file /Users/gsl001/Documents/Appcelerator_Studio_Workspace/sha151/build/android/bin/assets/Resources/ti.cloud/package.json
       [INFO] :   Processing JavaScript files
       [INFO] :   Encrypting JavaScript files: /Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/titanium_prep.macos "com.gsl.sha151" "/Users/gsl001/Documents/Appcelerator_Studio_Workspace/sha151/build/android/assets" "app.js" "ti.cloud/ti.cloud.js" "_app_props_.json"
       [INFO] :   Writing /Users/gsl001/Documents/Appcelerator_Studio_Workspace/sha151/build/android/bin/assets/app.json
       [INFO] :   Extracting module resources: /Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/modules/titanium-analytics.res.zip
       [INFO] :   Extracting module resources: /Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/modules/titanium-android.res.zip
       [INFO] :   Extracting module resources: /Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/modules/titanium-filesystem.res.zip
       [INFO] :   Extracting module resources: /Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/modules/titanium-app.res.zip
       [INFO] :   Extracting module resources: /Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/modules/titanium-media.res.zip
       [INFO] :   Extracting module resources: /Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/modules/titanium-locale.res.zip
       [INFO] :   Extracting module resources: /Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/modules/titanium-network.res.zip
       [INFO] :   Extracting module resources: /Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/modules/titanium-xml.res.zip
       [INFO] :   Extracting module resources: /Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/modules/titanium-platform.res.zip
       [INFO] :   No aidl files to compile, continuing
       [INFO] :   Generating i18n files
       [INFO] :   Generating /Users/gsl001/Documents/Appcelerator_Studio_Workspace/sha151/build/android/res/values/theme.xml
       [INFO] :   Packaging application: /Users/gsl001/Documents/android-sdk-macosx/build-tools/23.0.0/aapt "package" "-f" "-m" "-J" "/Users/gsl001/Documents/Appcelerator_Studio_Workspace/sha151/build/android/gen" "-M" "/Users/gsl001/Documents/Appcelerator_Studio_Workspace/sha151/build/android/AndroidManifest.xml" "-A" "/Users/gsl001/Documents/Appcelerator_Studio_Workspace/sha151/build/android/bin/assets" "-S" "/Users/gsl001/Documents/Appcelerator_Studio_Workspace/sha151/build/android/res" "-I" "/Users/gsl001/Documents/android-sdk-macosx/platforms/android-24/android.jar" "-F" "/Users/gsl001/Documents/Appcelerator_Studio_Workspace/sha151/build/android/bin/app.ap_" "--auto-add-overlay" "--extra-packages" "ti.modules.titanium.ui:android.support.v7.appcompat:android.support.v7.cardview" "-S" "/var/folders/gw/3ksrznsd21v_bdlfq6ww1l080000gn/T/1161019-32815-kwv0kf/res" "-S" "/var/folders/gw/3ksrznsd21v_bdlfq6ww1l080000gn/T/1161019-32815-rn95jm/res" "-S" "/var/folders/gw/3ksrznsd21v_bdlfq6ww1l080000gn/T/1161019-32815-wyfd91/res"
       [INFO] :   Building Java source files: /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/bin/javac "-J-Xmx1024M" "-encoding" "utf8" "-bootclasspath" "/Users/gsl001/Documents/android-sdk-macosx/platforms/android-24/android.jar:/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/kroll-v8.jar:/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/modules/titanium-analytics.jar:/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/aps-analytics.jar:/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/modules/titanium-android.jar:/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/jaxen-1.1.1.jar:/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/ti-commons-codec-1.3.jar:/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/kroll-common.jar:/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/titanium.jar:/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/android-support-multidex.jar:/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/modules/titanium-filesystem.jar:/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/modules/titanium-app.jar:/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/modules/titanium-ui.jar:/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/nineoldandroids-appc-2.4.0.jar:/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/modules/titanium-media.jar:/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/modules/titanium-appcompat.jar:/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/android-support-v4.jar:/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/android-support-v7-appcompat.jar:/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/modules/titanium-cardview.jar:/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/cardview-v7-23.0.1.jar:/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/modules/titanium-locale.jar:/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/modules/titanium-network.jar:/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/modules/titanium-xml.jar:/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/modules/titanium-platform.jar:/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/lib/titanium-verify.jar:R.class:AssetCryptImpl.class:Sha151Activity.class:Sha151AppInfo.class:Sha151Application.class" "-d" "/Users/gsl001/Documents/Appcelerator_Studio_Workspace/sha151/build/android/bin/classes" "-proc:none" "-target" "1.6" "-source" "1.6" "@/Users/gsl001/Documents/Appcelerator_Studio_Workspace/sha151/build/android/java-sources.txt"
       [INFO] :   Running dexer: /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/bin/java "-Xmx1024M" "-XX:-UseGCOverheadLimit" "-Djava.ext.dirs=/Users/gsl001/Documents/android-sdk-macosx/platform-tools" "-jar" "/Users/gsl001/Documents/android-sdk-macosx/build-tools/23.0.0/lib/dx.jar" "--dex" "--multi-dex" "--output=/Users/gsl001/Documents/Appcelerator_Studio_Workspace/sha151/build/android/bin/dexfiles" "/Users/gsl001/Documents/Appcelerator_Studio_Workspace/sha151/build/android/bin/classes" "/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/lib/titanium-verify.jar" "/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/kroll-v8.jar" "/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/modules/titanium-analytics.jar" "/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/aps-analytics.jar" "/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/modules/titanium-android.jar" "/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/jaxen-1.1.1.jar" "/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/ti-commons-codec-1.3.jar" "/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/kroll-common.jar" "/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/titanium.jar" "/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/android-support-multidex.jar" "/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/modules/titanium-filesystem.jar" "/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/modules/titanium-app.jar" "/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/modules/titanium-ui.jar" "/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/nineoldandroids-appc-2.4.0.jar" "/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/modules/titanium-media.jar" "/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/modules/titanium-appcompat.jar" "/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/android-support-v4.jar" "/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/android-support-v7-appcompat.jar" "/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/modules/titanium-cardview.jar" "/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/cardview-v7-23.0.1.jar" "/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/modules/titanium-locale.jar" "/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/modules/titanium-network.jar" "/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/modules/titanium-xml.jar" "/Users/gsl001/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android/modules/titanium-platform.jar"
       [INFO] :   Creating unsigned apk
       [INFO] :   Processing /Users/gsl001/Documents/Appcelerator_Studio_Workspace/sha151/build/android/bin/dexfiles
       [INFO] :   Processing /Users/gsl001/Documents/Appcelerator_Studio_Workspace/sha151/build/android/src
       [INFO] :   Writing unsigned apk: /Users/gsl001/Documents/Appcelerator_Studio_Workspace/sha151/build/android/bin/app-unsigned.apk
       [INFO] :   Using SHA1withRSA signature algorithm
       [INFO] :   Signing apk: /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/bin/jarsigner "-sigalg" "SHA1withRSA" "-digestalg" "SHA1" "-keystore" "/Users/gsl001/Downloads/Untitledggggg" "-storepass" "******" "-keypass" "123456" "-signedjar" "/Users/gsl001/Documents/Appcelerator_Studio_Workspace/sha151/build/android/bin/sha151.apk" "/Users/gsl001/Documents/Appcelerator_Studio_Workspace/sha151/build/android/bin/app-unsigned.apk" "darda"
       [INFO] :   Aligning zip file: /Users/gsl001/Documents/android-sdk-macosx/build-tools/23.0.0/zipalign "-v" "4" "/Users/gsl001/Documents/Appcelerator_Studio_Workspace/sha151/build/android/bin/sha151.apk" "/Users/gsl001/Documents/Appcelerator_Studio_Workspace/sha151/build/android/bin/sha151.apkz"
       [INFO] :   Writing build manifest: /Users/gsl001/Documents/Appcelerator_Studio_Workspace/sha151/build/android/build-manifest.json
       [INFO] :   Packaging complete
       [INFO] :   Package location: /Users/gsl001/Downloads/sha151.apk
       [INFO] :   Project built successfully in 54s 318ms
       
    My manifest section is
       <manifest>
               	android:versionCode="9" android:versionName="2.3.0">
                   <uses-sdk android:minSdkVersion="15" android:targetSdkVersion="24"/>
       </manifest>
       
    I have tested on Galaxy j7(6) device. Android 6.0.1 The issue is not reproducible. Thanks.

JSON Source