When setting up Titanium Developer on my windows machine, I ran into a few headaches, so I thought I would consolidate a few of the solutions I found from others into one place.
First thing I encountered was that Titanium Developer could not find the adb executable even after i configured the path to the Android SDK in Titanium. This was because originally adb was included in the tools directory, but was later moved to a new directory within the sdk called platform-tools. Because this relative path is specified within Titanium, you have to create a logical link so that Titanium can find it in the path it thinks that it exists in. Here is a quick guide explaining how to accomplish this in Windows XP, Windows Vista, Windows 7, and Linux.
After I got past that, I encountered another error “Error locating JDK: set $JAVA_HOME or put javac and jarsigner on your $PATH”. Once again, over at the appcelerator development forums someone posted a solution for setting the path to resolve this issue.
Next I went to Test & Package the KitchenSink application and selected “2.2″ for the SDK. Note: I did not have the “APIs” versions of the SDK in my options initially. I read that the KitchenSink app was built for 2.2, so naturally I figured 2.2 would be the correct choice. Wrong, you actually need to select “APIs 2.2″. 2.2 is only the SDK, the APIs were not downloaded and installed for me within the Android SDK Manager. I had to go back in there and find the “Google APIs” options within the Available Packages and download/install them. I grabbed them all to be on the safe side, but that may not have been necessary.
Also, here are a couple of notes from the readme included with the KitchenSink download in case you “forgot” to read it:
- Please place the Kitchen Sink demo in your user folder or a similarly shallow directory – windows’ command line file path lengths cause problems with our build scripts.
- If the Kitchen Sink doesn’t work out of the box for you, please [follow these steps outlined on our community Q&A](http://developer.appcelerator.com/question/53821/kitchen-sink-wont-run-what-do-i-do).