Project: appceleratorstudio
Issue TISTUD-7209: Studio Platform Configuration broke Android SDK setup
h5. Problem description Appcelerator Studio 'Platform Configuration' tab appeared after installing Appcelerator Studio from scratch, then eventually breaking Android SDK setup. This issue has been encountered once and I'm currently not able to reproduce. It might be an intermittent issue. h5. Steps performed 1. Download and performed a new installation of Appcelerator Studio 4.0.0.201502111458 (64bit zip) 2. Launched Studio, performed the login and choosed the same workspace used for previous installed versions Result: Appcelerator Studio 'Platform Configuration' tab appeared, even if both iOS and Android platforms were correctly installed and Android SDK location was correctly detected. As also showing in the attached screenshot, the Android SDK Location is detected, however the "No Android SDKs were found under the specified SDK location" text appears. Also, Android SDKs installed versions are detected (note: Android platform checkbox was selected too). 3. Clicked on configure Result: Next screen appeared showing correct versions installed and clicked on finish. However, from then on, Android SDK was no longer recognized or found under the specified SDK location 4. From CLI, do "ti info" Result: an error relative to Android SDK is displayed: {code} fcasali-MBP:~ fede$ ti info Titanium Command-Line Interface, CLI version 3.6.0-dev, Titanium SDK version 4.0.0.v20150217154015 Copyright (c) 2012-2014, Appcelerator, Inc. All Rights Reserved. Please report bugs to http://jira.appcelerator.org/ / /usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:185 throw e; ^ TypeError: Invalid Version: android.0.0 at new SemVer (/Users/fede/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.v20150217154015/node_modules/node-appc/node_modules/semver/semver.js:273:11) at compare (/Users/fede/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.v20150217154015/node_modules/node-appc/node_modules/semver/semver.js:460:10) at gte (/Users/fede/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.v20150217154015/node_modules/node-appc/node_modules/semver/semver.js:509:10) at cmp (/Users/fede/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.v20150217154015/node_modules/node-appc/node_modules/semver/semver.js:526:22) at Comparator.test (/Users/fede/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.v20150217154015/node_modules/node-appc/node_modules/semver/semver.js:599:10) at testSet (/Users/fede/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.v20150217154015/node_modules/node-appc/node_modules/semver/semver.js:922:17) at Range.test (/Users/fede/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.v20150217154015/node_modules/node-appc/node_modules/semver/semver.js:914:9) at Function.satisfies (/Users/fede/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.v20150217154015/node_modules/node-appc/node_modules/semver/semver.js:935:16) at /Users/fede/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.v20150217154015/node_modules/node-appc/lib/version.js:156:33 at Array.some (native) --------------------------------------------- at async.setImmediate (/Users/fede/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.v20150217154015/node_modules/async/lib/async.js:96:15) at /Users/fede/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.v20150217154015/node_modules/async/lib/async.js:696:21 at Array.forEach (native) at _each (/Users/fede/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.v20150217154015/node_modules/async/lib/async.js:32:24) at _insert (/Users/fede/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.v20150217154015/node_modules/async/lib/async.js:681:11) at q.push (/Users/fede/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.v20150217154015/node_modules/async/lib/async.js:708:15) at async.parallel.sdk (/Users/fede/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.v20150217154015/node_modules/titanium-sdk/lib/android.js:92:10) at /Users/fede/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.v20150217154015/node_modules/async/lib/async.js:524:25 {code} 5. Open android SDK folder / build-tools Result: I had in there an invalid "android-4.4.2" folder. Removing it, fixed the problem - both in Studio and in CLI. h5. Note I'm not able to reproduce the Configuration Panel being shown when starting up Studio, therefore right now a new Studio installation works as expected, also changing workspace or deleting Android SDK entries in Studio /configuration/.settings/com.appcelerator.titanium.rcp.prefs file. Keeping an eye open and tracking any further information in this ticket.
Story points: 8