Appcelerator | 'Android Distribution' Android SDK version 4.1.2 not found

638 Views Asked by At

I have pulled an Appcelerator project from our developer group and unable to publish or run the project on a local Android device. When trying to publish the below error screen immediately pops up. Android SDK version 4.1.2 not found.

I have checked both in the Appcelerator platform settings and Android Studio config and have the SDK installed.The install SDK screen in Appcelerator Tried uninstalling/reinstalling Appcli and the SDK to no avail.

3

There are 3 best solutions below

1
On BEST ANSWER

After a few days of searching all the appecelerator files in my project. I finally found the fix for my problem (for anyone googling this).

There's a hidden file in the root of the Appcli project called .settings

Inside of settings there's a package called com.appcelerator.titanium.android.core.prefs

There is an android/sdk_version=4.1.2 that was causing all my issues. Hope that helps someone.

2
On

Most likely, your issue seems to be with unsupported Android SDK version as per Ti SDK you are using.

So before doing anything, try to grab what this page says to know all about software compatibilities: Titanium Comptability Matrix

It says that minimum Android version as of latest Ti SDK 6.x.x is API 16.

Now, follow these steps carefully to get a fresh start on your system.

  1. First of all, download Android latest SDK from here: Android SDK
  2. Unzip it & put it in at some simple path like in /Users/username/android-sdk
  3. Download Appcelerator Studio (AS) & install it. It will download all pre-requisites like Java, Python
  4. Open Appcelerator Studio & go to Preferences->Studio->Platforms->Android. Select the path of android sdk you unzipped in step 2.

After all these steps, you can open Android SDK Manager (see screenshot where it is) & install necessary SDK, Tools, etc.

enter image description here

Note: I do not suggest to download SDKs via AS as I have faced path issues in beginning.


Even if these steps do not help you, then provide us the log output after running this command on terminal: appc info

If terminal says this command is not found, then you need to go through the AS installation properly.

0
On

I had the same issue. Simply deleting all " Android Play Store Distribution" configurations solved my problem.