Hi guys. After just having spent about 20 hours this weekend to get a
PhoneGap install completely redone on Windows in order to push up a
prototype, I'm hoping I can be of help.
First off, this article was the best step-by-step instructions i've
seen:
http://dev.tonic1394.com/2010/06/phonegap-the-missing-androidwindows-setup-guide/
After all of this is followed to the letter, not much else is really
needed to be changed.
I would say make sure your Paths are set correctly, like:
- PATH includes your ruby, ApacheANT, Java, and Android_SDK install
points including the bin directories (/tools for the Android_SDK)
- make sure you add individual paths for APACHE_HOME, JAVA_HOME, and
ANDROID_HOME that point to the root install folders for each (one
directory up from the bin or tools folders)
Another stumbling point not mentioned is to make sure you have the
Android SDK install ALL of the available platforms of Android. Each
one that is installed adds a Target Id, which is the Target value
referenced in the actual droidgap file. If you add only frameworks
for 2.1 and 2.2, you will have Target Id 1 and Target Id 2, but
droidgap by default points to Target Id 5 in the 0.9.0.1 release and
Target Id 8 in the edge release currently. I think that can cause an
error like file or target not found. Once you have all the previous
incarnations of frameworks/sdks created, you should have more like 12+
Target Ids. To see how many you have, open a command line in the
Android_SDK/android-sdk-windows/tools folder and type "android.bat
list targets" at the command line and it should list them all out with
the associated Android OS.
So once you have all those installed, you pick the one you want to
build for (i used 2.1-update1, which was Target Id 9) and modify the
target setting in the droidgap file. No other modifications should be
needed in my experience (no android -> android.bat or similar
changes).
Once that droidgap change is made, you should be able to run git bash
on the droidgap file and do your ruby command. Also, I used no
quotation marks in my paths, just forward slashes in all of them- but
i had no spaces anywhere.
Post back how you're doing.