I am currently writing a part of an Android application to upload videos to YouTube using the Google Data API. I have the latest version of the API from Google Code, and currently I mainly copied the example from my Developer's Guide .
Everything compiles without warnings or errors, and the application works fine. But when I call service.insert (...), I get the following stack trace:
ERROR/dalvikvm(19489): Could not find class 'com.google.gdata.data.media.MediaBodyPart$MediaSourceDataHandler', referenced from method com.google.gdata.data.media.MediaBodyPart.initMediaDataHandler ERROR/dalvikvm(19489): Could not find class 'javax.activation.DataHandler', referenced from method com.google.gdata.data.media.MediaBodyPart.initMediaDataHandler ERROR/dalvikvm(19489): Could not find class 'javax.mail.internet.MimeBodyPart$MimePartDataHandler', referenced from method javax.mail.internet.MimeBodyPart.writeTo ERROR/dalvikvm(19489): Could not find class 'javax.activation.DataHandler', referenced from method javax.mail.internet.MimeBodyPart.attachFile ERROR/dalvikvm(19489): Could not find class 'javax.mail.internet.MimeBodyPart$MimePartDataHandler', referenced from method javax.mail.internet.MimeBodyPart.getDataHandler ERROR/dalvikvm(19489): Could not find class 'javax.activation.DataHandler', referenced from method javax.mail.internet.MimeBodyPart.setContent ERROR/dalvikvm(19489): Could not find class 'javax.activation.DataHandler', referenced from method javax.mail.internet.MimeBodyPart.setContent ERROR/dalvikvm(19489): Could not find class 'javax.activation.DataHandler', referenced from method javax.mail.internet.MimeBodyPart.updateHeaders
with NoClassDefFoundError.
I have all the dependencies for the GData API associated with my project in Eclipse (two are included in the DEPS directory in the API, as well as JavaMail, activation, and servlet api), and I tried to add all the jar files to the class path in Eclipse. I looked at the corresponding banks, and all the classes that he claims that they cannot find, definitely exist.
If someone can help in any case, any ideas at this stage will be greatly appreciated.
thanks
source share