Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Building Titanium Mobile from source

Greetings, all!

In step 2 of
building-titanium-from-source
I run scons with no parameters as directed an exception occurs:

Exception: No Android SDK directory found

So providing my SDK path:

scons android_sdk=/Users/matthew/Developer/sdks/android/

It then builds packages up to com.google.android.maps:

[javac] /Users/matthew/Developer/titanium-mobile/titanium_mobile/android/modules/map/src/ti/modules/titanium/map/TiMapActivity.java:13: package com.google.android.maps does not exist

Edit: I have the Google APIs installed through the Android SDK Manager though I notice that the java command run by scons has -Dgoogle-apis=None as below:

java -cp /Users/matthew/Developer/titanium-appcelerator/titanium_mobile/android/build/lib/ant.jar:/Users/matthew/Developer/titanium-appcelerator/titanium_mobile/android/build/lib/ant-launcher.jar:/Users/matthew/Developer/titanium-appcelerator/titanium_mobile/android/build/lib/xercesImpl.jar:/Users/matthew/Developer/titanium-appcelerator/titanium_mobile/android/build/lib/xml-apis.jar:/Users/matthew/Developer/titanium-appcelerator/titanium_mobile/android/build/lib/ant-nodeps.jar org.apache.tools.ant.launch.Launcher -Dant.home=build -Dandroid.platform=/Users/matthew/Developer/sdks/android/platforms/android-4 -Dandroid.sdk=/Users/matthew/Developer/sdks/android/ -Dgoogle.apis=None -Dbuild.version=1.3.1 -buildfile build.xml Buildfile: /Users/matthew/Developer/titanium-appcelerator/titanium_mobile/android/build.xml

Maybe there's something I've missed, can anyone help with advice?

— asked May 27th 2010 by Matthew Lenton
  • build
  • mobile
  • source
  • titanium
0 Comments

3 Answers

  • Don't know if one year later the answer will be helpfull, but maybe it can help someone else.

    If you look in the file ./android/build/common.xml, you'll see that if you specify android_sdk it assumes that the following folders are available beneath it:

    • /platforms/android-7
    • /add-ons/google_apis-7_r01

    So you must make sure that you've downloaded the version 7 revision 1 of the google api addon.

    If you want to build using another android API and add-on, you may set the ANDROID_PLATFORM and GOOGLE_APIS environment variables instead of using android_sdk.

    — answered September 1st 2011 by Olivier Desaive
    permalink
    0 Comments
  • I'm using Eclipse to build it along with the classpath variables described at:

    http://developer.appcelerator.com/doc/mobile/android-custom-modules

    Thanks to Don for the advice!

    — answered May 27th 2010 by Matthew Lenton
    permalink
    0 Comments
  • Did you get this resolved? I'm having the exact same issues with build.

    — answered June 19th 2010 by James Whittaker
    permalink
    1 Comment
    • Same issues here.

      — commented June 19th 2010 by Adnan Ali
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.