android - Could not find class error when trying to upload a video to YouTube using the gdata API -
i writing part of android application upload video youtube using google data api. have latest version of api google code, , have copied example developer's guide time being.
everything compiles no warnings or errors, , app runs fine. when call service.insert(...) following stack trace:
error/dalvikvm(19489): not find class 'com.google.gdata.data.media.mediabodypart$mediasourcedatahandler', referenced method com.google.gdata.data.media.mediabodypart.initmediadatahandler error/dalvikvm(19489): not find class 'javax.activation.datahandler', referenced method com.google.gdata.data.media.mediabodypart.initmediadatahandler error/dalvikvm(19489): not find class 'javax.mail.internet.mimebodypart$mimepartdatahandler', referenced method javax.mail.internet.mimebodypart.writeto error/dalvikvm(19489): not find class 'javax.activation.datahandler', referenced method javax.mail.internet.mimebodypart.attachfile error/dalvikvm(19489): not find class 'javax.mail.internet.mimebodypart$mimepartdatahandler', referenced method javax.mail.internet.mimebodypart.getdatahandler error/dalvikvm(19489): not find class 'javax.activation.datahandler', referenced method javax.mail.internet.mimebodypart.setcontent error/dalvikvm(19489): not find class 'javax.activation.datahandler', referenced method javax.mail.internet.mimebodypart.setcontent error/dalvikvm(19489): not find class 'javax.activation.datahandler', referenced method javax.mail.internet.mimebodypart.updateheaders
with noclassdeffounderror.
i have dependencies gdata api linked project in eclipse (the 2 included in deps directory of api, , javamail, activation , servlet-api), , have tried adding jar files classpath in eclipse. have looked through relevant jars , classes claims can't find there.
if in way - ideas @ stage appreciated.
thanks
it turned out normal javamail/activation packages don't work on android. solution use javamail android, works perfectly.
Comments
Post a Comment