i trying use org.apache.httpcomponents:httpmime:4.5.2
dependency on android exception:
e/androidruntime: fatal exception: syncadapterthread-1 java.lang.exceptionininitializererror @ org.apache.http.entity.mime.multipartentity.<init>(multipartentity.java:71) @ org.apache.http.entity.mime.multipartentity.<init>(multipartentity.java:91)
when call:
multipartentity multipartentity = new multipartentity();
any thoughts might causing this?
apache http has been removed in android m. shouldn't use anymore.
i suggest use okhttp multipartbody or httpurlconnection dataoutputstream.
Comments
Post a Comment