[TIMOB-6141] Android: Scons/ant: build fails when GOOGLE_APIS environment variable is set
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-11-10T14:33:55.000+0000 |
Affected Version/s | Release 1.8.0.1 |
Fix Version/s | Sprint 2011-45, Release 1.8.0.1 |
Components | Tooling |
Labels | n/a |
Reporter | Opie Cyrus |
Assignee | Opie Cyrus |
Created | 2011-11-10T07:45:40.000+0000 |
Updated | 2017-03-03T22:50:18.000+0000 |
Description
if the GOOGLE_APIS environment variable is set then the value for google_apis_dir in androidsdk.py is never set.
reproduction step for this issue is to set the GOOGLE_APIS env variable before calling scons. For example: example: .bash_profile export ANDROID_SDK=~/dev/installed/android-sdk-mac_x86 export GOOGLE_APIS=${ANDROID_SDK}/add-ons/addon_google_apis_google_inc_8; once set, run scons
Just a note on how to confirm the fix. Before the fix is applied, setting GOOGLE_APIS should cause scons to error out: {quote} Building MobileSDK version 1.8.0.1, githash 113dae7 AttributeError: AndroidSDK instance has no attribute 'google_apis_dir': File "/Users/jroesslein/Development/Appcelerator/titanium_mobile/SConstruct", line 112: "android.sdk": sdk.get_android_sdk(), "android.platform": sdk.get_platform_dir(), "google.apis": sdk.get_google_apis_dir(), File "/Users/jroesslein/Development/Appcelerator/titanium_mobile/support/android/androidsdk.py", line 119: return self.google_apis_dir {quote} After the fix is applied scons should complete successfully.
Closing ticket.