im using Recurly client maven dependency and im getting error in the recurlyclient.java
the error says that
"java.lang.NoSuchMethodError: com.ning.http.client.AsyncHttpClientConfig$Builder.setMaximumConnectionsPerHost(I)Lcom/ning/http/client/AsyncHttpClientConfig$Builder"
this is regarding recurlyClient.open()
Please help me with this issue
This is most likely a version mismatch of the async-http-client
library.
What's the version of the async-http-client
that's available to you at runtime? The setMaximumConnectionsPerHost(int)
the method in v1.8.0 (and the versions prior) was renamed to setMaxConnectionsPerHost(int)
in v1.9.0.
So your code or a certain version of some library that you use is coded to work with v1.8.0
or less of async-http-client
, but at runtime you have the v1.9.0
of it available to you instead. Look at your Maven dependency tree to fix the problem.