On 5/6/2014 4:32 PM, blach wrote: > Hello, I'm struggling to retreive some data from my localhost Solr from an > Android Application. but i'm still having the same error. > > /05-06 18:22:09.036: E/AndroidRuntime(1628): java.lang.NoSuchMethodError: > org.apache.http.conn.scheme.Scheme.<init> > 05-06 18:22:09.036: E/AndroidRuntime(1628): at > org.apache.http.impl.conn.SchemeRegistryFactory.createSystemDefault(SchemeRegistryFactory.java:83) > 05-06 18:22:09.036: E/AndroidRuntime(1628): at > org.apache.http.impl.client.SystemDefaultHttpClient.createClientConnectionManager(SystemDefaultHttpClient.java:121) > 05-06 18:22:09.036: E/AndroidRuntime(1628): at > org.apache.http.impl.client.AbstractHttpClient.getConnectionManager(AbstractHttpClient.java:221)/ > > I'm using these Jars : > - Commons-io-2.1.jar > - httpclient-4.3.1.jar > - httpcore-4.3.jar > - jcl-over-slf4j-1.6.6.jar > - jul-to-slf4j-1.6.6.jar > - log4j-1.2.16.jar > - slf4j-api-1.6.6.jar > - slf4j-log4j12-1.6.6.jar > - solr-solrj-4.8.0jar
The class/method that it says it can't find is in httpclient-4.3.1.jar. I think there are two possibilities here: 1) This jar is not in the classpath at runtime. 2) You have a different version of httpclient in your classpath that does not a method with a precise match on the signature. Thanks, Shawn