[android-developers] Re: NoClassDefFoundError for gdata CalendarService class

2010-03-18 Thread Kumar Bibek
According to me, you should also add the gdata-base and gdata-client. Perhaps, here are the super classes of CalendarService. Try it once and I am sure that this will work. Thanks and Regards, Kumar Bibek On Mar 17, 4:04 am, Bob Kerns wrote: > From your log messages, I would guess that the clas

[android-developers] Re: NoClassDefFoundError for gdata CalendarService class

2010-03-16 Thread Bob Kerns
>From your log messages, I would guess that the class com.google.gdata.client.GoogleService lives in a different .jar, that you haven't included somehow. (At least, googling com.google.gdata.client.calendar.CalendarService suggests that's the superclass in question). Check inside the .dex file to

[android-developers] Re: NoClassDefFoundError for gdata CalendarService class

2010-03-16 Thread DJC
I too am encountering the same issue. I'm using MOTODEV to develop an Android app using the Google Calendar API. I downloaded gdata-src.java-1.40.3 and unzipped it. In Project - > Properties I pull up the Java Build Path tab, Libraries subtab and click "Add External Jars". I navigate down to gd

[android-developers] Re: NoClassDefFoundError for gdata CalendarService class

2010-03-16 Thread DJC
I'm having the same problem :( On Mar 15, 11:52 am, Brion Emde wrote: > Hi Tom, > > I went down the same path as you with the gdata library and I was > going to take a look at this library, which the developer claims does > work on Android: > > http://code.google.com/p/simply-gdata/ > > I'd be in

[android-developers] Re: NoClassDefFoundError for gdata CalendarService class

2010-03-16 Thread DJC
I am having the same problem ... DJC On Mar 15, 11:52 am, Brion Emde wrote: > Hi Tom, > > I went down the same path as you with the gdata library and I was > going to take a look at this library, which the developer claims does > work on Android: > > http://code.google.com/p/simply-gdata/ > > I'

[android-developers] Re: NoClassDefFoundError for gdata CalendarService class

2010-03-15 Thread Brion Emde
Hi Tom, I went down the same path as you with the gdata library and I was going to take a look at this library, which the developer claims does work on Android: http://code.google.com/p/simply-gdata/ I'd be interested in if this works for you, as I haven't gotten around to looking at it and if i

Re: [android-developers] Re: NoClassDefFoundError for gdata CalendarService class

2010-03-15 Thread David Williams
They go under resource On Sat, Mar 13, 2010 at 6:21 PM, Tom wrote: > > > On Mar 13, 3:15 pm, Mark Murphy wrote: > > Tom wrote: > > > I'm writing an android 2.1 application that writes an entry to my > > > Google calendar. The relevant part of my application code looks like > > > this: > > > >

[android-developers] Re: NoClassDefFoundError for gdata CalendarService class

2010-03-15 Thread Tom
Thanks everyone for all of your suggestions. I haven't been able to get the com.google.gdata classes to load properly in the emulator or my N1 phone. The stack trace indicates that the DVM cannot load classes in the com.google.gdata.client packages, despite the jars being included in the Eclipse p

[android-developers] Re: NoClassDefFoundError for gdata CalendarService class

2010-03-13 Thread Bob Kerns
Yes. The reason I do copy them (and recommend copying them) to a lib/ directory is twofold: 1) It makes them an explicit part of your project for versioning. If you use Subversion you can make these be a copy from a directory of third-party components. You could copy the third-party directory for

[android-developers] Re: NoClassDefFoundError for gdata CalendarService class

2010-03-13 Thread Kumar Bibek
It doesn't really matter if you create a lib folder and put the jars and link them. It just works if you have added the jars the the build path. Though I am not able to figure out why you are getting this error. > But I *highly* recommend not using Eclipse for your production builds, > but rather

[android-developers] Re: NoClassDefFoundError for gdata CalendarService class

2010-03-13 Thread Bob Kerns
What I do is to create a libs/ directory in Eclipse, and add them to the Eclipse build path. Android Tools/Export Signed Application Properties works fine. But I *highly* recommend not using Eclipse for your production builds, but rather have a build script that handles checkout, version numberin

[android-developers] Re: NoClassDefFoundError for gdata CalendarService class

2010-03-13 Thread Tom
I created the libs directory where you specified and copied the gdata .jar files in there, then from Eclipse ran "Export" project, then installed on the phone - but with the same result - NoClassDefFoundError for CalendarService. It seems that Eclipse is "silently" failing to handle the gdata jar

Re: [android-developers] Re: NoClassDefFoundError for gdata CalendarService class

2010-03-13 Thread Mark Murphy
Tom wrote: >>> This code compiles with no errors, using Eclipse on MacOS, using >>> external jar files from the Google gdata project: >>> gdata/java/lib/gdata-calendar-2.0.jar >>> gdata/java/lib/gdata-calendar-meta-2.0.jar >> Did you copy these into your project's libs/ directory? >> > > No, I mer

[android-developers] Re: NoClassDefFoundError for gdata CalendarService class

2010-03-13 Thread Tom
On Mar 13, 3:15 pm, Mark Murphy wrote: > Tom wrote: > > I'm writing an android 2.1 application that writes an entry to my > > Google calendar. The relevant part of my application code looks like > > this: > > >    void addCalendarEntry(String googleUser, String password) > >    throws Exception