Following the excellent getting started guide (mobile, Windows), everything goes well until page 18, where you run the null HelloWorld app. The emulator comes up, and Titanium apparently connects to it, but the app is not installed. I must have made some simple and stupid mistake.
[INFO] Installing application on device
[DEBUG] C:\android-sdk\tools\adb.exe -e install -r C:\Users\John\Documents\projects\Appcelerator\HelloWorld\build\android\bin\app.apk
[ERROR] Failed installing com.jd.hw: pkg: /data/local/tmp/app.apk
Running that last command in a command shell, I get:
C:\Users\John> C:\android-sdk\tools\adb.exe -e install -r C:\Users\John\Document
1627 KB/s (963172 bytes in 0.578s)
-12 seems to be INSTALL_FAILED_OLDER_SDK
I found the emulator that came with the android sdk is version 1.1. So I tried setting the SDK in Titanium to 1.1. But I get the same result.
I uninstalled and reinstalled titanium to no avail.
I have made no changes to any files, just trying to follow instructions to the letter.
I also tried running on my Nexus One device running Froyo. After clicking on Install Now, I get the message "Installing app on device…" – forever.
Target: Android 1.1 (API level 2) -> this is too old
here is what you should have in your android sdk avd manager & titanium developer :
try download latest package (in available package in the android sdk avd manager)
Android SDK must be higher than 1,6 as stated in page 11
1.1 is too low.
Select the following items from the list of available packages:
• SDK Platform Android 1.6
• Google APIs by Google Inc.
Thanks, but that was the first thing I tried. Setting the sdk to 1.6 produces the same failure. Could it be that my emulator is bad? It's what came along with the latest android sdk. Where would I get one that works with Titanium?
Available Android Virtual Devices:
Name: titanium_1_HVGA Path: C:\Users\John\.android\avd\titanium_1_HVGA.avd
Target: Android 1.1 (API level 2)
here is my installed package hope this help :
By the way, things didn't go exactly as described on pages 10 and 11. The top screen shot on page 11 did not match mine. There was just one site and no packages displayed. So I went back to page 10 and installed everything. Could that be my problem? I did the installation yesterday. I did not see the error about fetching source files described on page 10.