Problem solved by using source code of httpmime module embedded into the project. I suspect that tehre is a problem converting jar library into dex code.
вторник, 10 апреля 2012 г., 15:49:38 UTC+3 пользователь DennisG написал: > > Hi, > > I used to use org.apache.http.entity.mime.content.FileBody > with org.apache.http.entity.mime.MultipartEntity sending files to server > before. Suddenly I got a problem when upgrated to Android SDK ver 17th. > Program is still compiled and started, but when it tries to > instantiate org.apache.http.entity.mime.content.FileBody class it raises > the following exception: > > 04-10 11:35:43.385: E/dalvikvm(457): Could not find class > 'org.apache.http.entity.mime.content.FileBody', referenced from method > com.leadertask.todo.android.service.LTSyncHandler$UploadSyncFileAsync.doInBackground > 04-10 11:35:43.385: W/dalvikvm(457): VFY: unable to resolve new-instance > 818 (Lorg/apache/http/entity/mime/content/FileBody;) in > Lcom/leadertask/todo/android/service/LTSyncHandler$UploadSyncFileAsync; > > I tried different versions of httpmimeXXX.jar but problem persists. Funny > thing is that org.apache.http.entity.mime.content.StringBody and other > classes from this library work fine. I guess that there is some conflict. > When compiled on older version of Android SDK (ver 16) - everythihg works > smoothly. So now I keeping old version of SDK on my backup laptop to > compile this project. > > Could enyone to explain me please how can I solve this annoying problem? > > Regards, Dennis. > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

