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:

enter image description here

and libraries tab

enter image description here

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

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -