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?
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 specifyandroid_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
andGOOGLE_APIS
environment variables instead of using android_sdk. -
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!
-
Did you get this resolved? I'm having the exact same issues with build.