我正在尝试使用依赖于Apache的URIBuilder的库。当我在Gradle中添加库依赖项后尝试运行时,出现错误:
java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/client/utils/URIBuilder;
at com.coinbase.api.CoinbaseImpl.getAuthorizationUri(CoinbaseImpl.java:1127)
我尝试在Gradle中添加apache http客户端作为依赖项,但后来我收到错误:
WARNING: Dependency org.apache.httpcomponents:httpclient:4.3.6 is ignored for release as it may be conflicting with the internal version provided by Android.
In case of problem, please repackage it with jarjar to change the class packages
我该如何解决这个问题?