Titanium JIRA Archive
Appcelerator Community (AC)

[AC-6446] Android SDK version Android 9 not found when Packaging for the Android Play Store

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterShawn Lipscomb
AssigneeAminul Islam
Created2019-11-21T14:26:27.000+0000
Updated2020-07-20T13:55:00.000+0000

Description

Steps to Reproduce

I get this error (Android SDK version Android 9 not found) when trying to Package my app for the Android Play Store. This used to work fine. The error doesn't tell me what it's looking for or in what directory it's looking. I have minSdkVersion set to 19 and targetSdkVersion set to 28 in tiapp.xml. Using Ti SDK 8.2.1.GA.

Actual Result

!ENTRY com.appcelerator.titanium.android.core 4 0 2019-11-21 09:06:42.028 !MESSAGE Android SDK version Android 9 not found. !STACK 1 org.eclipse.core.runtime.CoreException: Android SDK version Android 9 not found. at com.appcelerator.titanium.android.core.launching.AndroidLaunchConfigurationHelper.getConfiguredSDK(AndroidLaunchConfigurationHelper.java:99) at com.appcelerator.titanium.android.core.launching.AndroidNodeJSCommandsHelper.getConfiguredSDK(AndroidNodeJSCommandsHelper.java:259) at com.appcelerator.titanium.android.core.launching.AndroidNodeJSCommandsHelper.packageProjectEnvironment(AndroidNodeJSCommandsHelper.java:273) at com.appcelerator.titanium.android.core.launching.AndroidNodeJSCommandsHelper.packageProject(AndroidNodeJSCommandsHelper.java:338) at com.appcelerator.titanium.android.core.launching.AndroidPackagerLaunchConfigurationDelegate$1.run(AndroidPackagerLaunchConfigurationDelegate.java:111) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63) !SUBENTRY 1 com.appcelerator.titanium.android.core 4 401 2019-11-21 09:06:42.028 !MESSAGE Android SDK version Android 9 not found.

Expected Result

The APK should be built

Comments

  1. Shawn Lipscomb 2019-11-21

    I'm running on a Windows 7 machine.
  2. Aminul Islam 2019-11-22

    Hello! Thanks for reaching out! Have you installed all required Android SDKs? If you are using the latest Titanium SDK, you need to install the latest Android SDK. 1. You can see which ones you have installed using *appc ti info -t android* (Android Platforms)and select the one to use via tiapp.xml. 2. Titanium SDK 8.0.0+ requires Android SDK Tools v28 or newer as a minimum requirement. 3. What version of Appcelerator Studio do you have? Make sure , Android SDK location for studio and CLI both are the same. Please share your studio diagnostic log. Please take a look: [Titanium Compatibility Matrix](https://wiki.appcelerator.org/display/guides2/Titanium+Compatibility+Matrix#TitaniumCompatibilityMatrix-Studio5.1.0+installers) Thanks
  3. Shawn Lipscomb 2019-11-22

    Yes, I have the required Android SDKs. This has been working fine, and then all of a sudden I get this failure. And yes, I have Android SDK Tools v28. The Environment tag on this ticket shows my Appcelerator Studio version. This is not about my environment. It's about corruption of the package configurations. It's really about the fact that the error gives absolutely no useful information. I had to beat Studio into submission and finally found a way to create a brand new packaging configuration, and got it to work. Without any change to my environment! But this ticket should not be resolved, because the error gives absolutely no useful information. This is one of Appcelerator Studio's most fatal flaws -- it seems to eat its young and never gives enough information to know where to look or how to fix the problem.
  4. Shawn Lipscomb 2020-07-20

    This just happened to me again today. Very infuriating. I packaged my app yesterday just fine. Today I try to package it and I get this error.

JSON Source