Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8658] Android: Switch search order of folders/environment variables in androidsdk.py

GitHub Issuen/a
TypeStory
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2013-08-28T23:17:14.000+0000
Affected Version/sRelease 2.1.0
Fix Version/s2013 Sprint 18 Core, 2013 Sprint 18, Release 3.2.0
ComponentsAndroid, Tooling
Labelsandroidbuild, ay-verified, cb-verified, core
ReporterIngo Muschenetz
AssigneeChris Barber
Created2012-04-10T14:52:45.000+0000
Updated2017-03-14T18:08:06.000+0000

Description

I accidentally updated my ANDROID_SDK environment variable to a bad value, and suddenly Studio was unable to find my Android platforms, even though I had a correct SDK specified in preferences. Digging into the code, I see that we pass a specific directory to search to avd.py, by androidsdk.py/find_sdk() defers to ANDROID_SDK before utilizing "supplied". It seems we should respect the passed-in directory first before defaulting to backup options like environment variables.

Comments

  1. Chris Barber 2013-08-27

    This is fixed by https://github.com/appcelerator/titanium_mobile/pull/4612, specifically TIMOB-14787.
  2. Lee Morris 2017-03-14

    Closing ticket as fixed.

JSON Source