PG 0.9.3/Android-latest problem

18 views
Skip to first unread message

Ted Neward

unread,
Jan 30, 2011, 6:48:00 AM1/30/11
to phon...@googlegroups.com

I have a working Android SDK install, and just downloaded PG 0.93. I'm doing command-line Android (mostly because I hate Eclipse). Following the instructions in the PG wiki, I did an "android update project -path . -target android-7", which appeared to work, and then an "ant debug install"

with the emulator running. No error messages appear (other than the usual warnings and messages I get when building an Android app from Java).

 

When I launch the app in the emulator, the app Force-Closes and adb reveals that it is due to a ClassNotFoundException, failing to find com.phonegap.Sample.Sample . I can see the class being compiled (it's in the bin\classes directory). 'dexdump' confirms that the class is in the classes.dex in the same bin directory. Anybody got any helpful tips how to track down what's going wrong here?

 

Ted Neward

Java, .NET, XML Services

Consulting, Teaching, Speaking, Writing

http://www.tedneward.com

 

 

filmaj

unread,
Jan 31, 2011, 1:56:25 PM1/31/11
to phonegap
That's not my usual flow for loading PhoneGap apps onto an Android
(emulator or device).

Do you use the build tools packaged with PhoneGap-Android? It's a set
of ruby scripts (dubbed droidgap). I usually add the phoengap-android/
bin directory to my path so I can run the droidgap tool from anywhere.

Given I have my PhoneGap assets under ~/src/testapp, I create a
phonegap-android version of this project by running:

droidgap create ~/src/testapp

Which then creates an android project under ~/src/testapp_android .
You can then cd into this directory and then run 'ant debug install'

Works like a charm for me. One thing that DOESNT work for me: using
relative paths when using droidgap. I provide full paths otherwise the
build can fail.
>  <http://www.tedneward.com>http://www.tedneward.com

Steve

unread,
Jan 31, 2011, 2:38:25 PM1/31/11
to phon...@googlegroups.com
Hey Ted,

Droidgap isn't acctually included in 0.9.3.

Are you trying to install the sample app that came with the 0.9.3 download?

-Steve


--
You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en

For more info on PhoneGap or to download the code go to www.phonegap.com



--
-Steve Gill
Nitobi Software
www.nitobi.com
http://twitter.com/StevenGill97

Ted Neward

unread,
Feb 5, 2011, 2:13:24 AM2/5/11
to phon...@googlegroups.com

Yes. Actually, mostly just trying to build it and run it in the emulator. (From there, once I have an APK I’m in comfy territory.)

Ted Neward

unread,
Feb 5, 2011, 2:17:07 AM2/5/11
to phon...@googlegroups.com
Isn't "~/src/testapp" itself considered a relative path?

Also, this is just trying to build the Android Sample app that comes with
the PG0.9.3 binary distro. I'm not even at the point of trying to build a
new project yet.

Ted Neward
Java, .NET, XML Services
Consulting, Teaching, Speaking, Writing
http://www.tedneward.com

> -----Original Message-----
> From: phon...@googlegroups.com [mailto:phon...@googlegroups.com]

Reply all
Reply to author
Forward
0 new messages