android - Apache httpClient.execute() NoSuchMethodError - project builds ok, but this happens at runtime? -
a few days ago moved eclipse project 1 folder , set dependencies again.
the project builds , app runs until gets piece of code:
httpresponse httpresponse = httpclient.execute(httppost);
where error:
caused by: java.lang.nosuchmethoderror: org.apache.http.impl.client.defaulthttpclient.execute
in libs
folder have these jars:
httpclient-4.3.5.jar httpcore-4.3.2.jar httpmime-4.3.5.jar
and here how order , export looks like:
and libraries tab
edit: thing tried downloading lastest httpcore, httpclient , httpmime , replacing jars in libs folder
and added them add external jars
in libraries tab of configure build path
i resolved problem downgrading versions 4.1 or httpcore, httpclient , httpmime.
Comments
Post a Comment