[TIMOB-8658] Android: Switch search order of folders/environment variables in androidsdk.py
GitHub Issue | n/a |
---|---|
Type | Story |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-08-28T23:17:14.000+0000 |
Affected Version/s | Release 2.1.0 |
Fix Version/s | 2013 Sprint 18 Core, 2013 Sprint 18, Release 3.2.0 |
Components | Android, Tooling |
Labels | androidbuild, ay-verified, cb-verified, core |
Reporter | Ingo Muschenetz |
Assignee | Chris Barber |
Created | 2012-04-10T14:52:45.000+0000 |
Updated | 2017-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.
This is fixed by https://github.com/appcelerator/titanium_mobile/pull/4612, specifically TIMOB-14787.
Closing ticket as fixed.