Reputation: 395
When executing: Future<HttpResponse> future = myHttpAsyncClient.execute(post, null);
i get this:
12-02 02:22:03.567: W/dalvikvm(6392): threadid=13: thread exiting with uncaught exception (group=0x40b5c930)
...
Caused by: java.lang.NoSuchMethodError: org.apache.http.client.utils.URIUtils.extractHost
12-02 02:22:03.606: E/AndroidRuntime(6392): at org.apache.http.impl.nio.client.AbstractHttpAsyncClient.determineTarget(AbstractHttpAsyncClient.java:594)
...
I found this question: Apache HttpAsyncClient - NoSuchMethodError - URIUtils.extractHost but i've not properly understood what i've to do to fix the problem. Thank you
Upvotes: 2
Views: 1505
Reputation: 1270
Unfortunately there is an incompatibility issue with android internal httpcore and external httpasyncclient library. Android relies on older version of httpcore. Even if you export your application with newer version of it, android still uses the internal one because of the same package.
So possible solutions are:
Upvotes: 3