Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6141] Android: Scons/ant: build fails when GOOGLE_APIS environment variable is set

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-11-10T14:33:55.000+0000
Affected Version/sRelease 1.8.0.1
Fix Version/sSprint 2011-45, Release 1.8.0.1
ComponentsTooling
Labelsn/a
ReporterOpie Cyrus
AssigneeOpie Cyrus
Created2011-11-10T07:45:40.000+0000
Updated2017-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.

Comments

  1. Opie Cyrus 2011-11-10

    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
  2. Josh Roesslein 2011-11-10

    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.
  3. Lee Morris 2017-03-03

    Closing ticket.

JSON Source