How to get the Kitchensink app for Android running on Titanium

When starting out with Appcelerator Titanium it’s pretty easy to get the kitchensink app running on the iphone emulator, however running it on the Android emulator was not a breeze. Several pitfalls and hurdles need to be overcome to get it running.

The first problem I encountered was after installing the required Android SDK’s and tools. Even though I pointed Titanium to look in the correct folder for the android sdk it complained:

Couldn’t find adb or android in your SDK’s “tools” directory. You may need to install a newer version of the SDK tools.

I had the latest version installed and the android app resided in the tools directory, but apparently in between sdk’s a change was made by the Android team, the adb app used to reside under tools, but was moved to platform-tools. The solution was pretty easy, I created an alias to <android sdk>/platform-tools/adb and dropped it in the <android sdk>/tools folder.

I could compile the kitchensink sources and the emulator started running. However, no kitchensink app was created in the emulator.

Although Titanium says it only needs versions 1.6 & 2.2  of the Android SDK’s I decided to install ALL available SDK’s (using the Android manager BTW) and ALSO all third-party SDK’s tools et cetera.

Next when trying to build the KitchenSink example using the 2.2 SDK I got the following error

Failed installing com.appcelerator.kitchensink: pkg: /data/local/tmp/app.apk

When you want to build the KitchenSink example it’s very important to choose either “APIs 1.6” or “APIs 2.2” in the SDK field. You got a lot more options since you installed all SDK’s but none of them will build it correctly except for the above 2.

Et voila, you’re good to go.

In case I missed something, feel free to drop a comment pointing it out.

Advertisements
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: