我试着在Android的项目中使用unirest。
他们在自己的网站上写道:
也不要忘记在类路径中安装依赖项(org.json、httpclient 4.3.6、httpmime 4.3.6、httpasyncclient4.0.2)。
我不知道该为这个添加哪些libs。
我试着补充如下:
compile 'org.apache.httpcomponents:httpasyncclient:4.1.1'
compile 'org.apache.httpcomponents:httpmime:4.5.1'
compile 'com.hynnet:httpclient:4.5.1'我得到了一个例外:
Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.>
com.android.build.transform.api.TransformException: java.util.zip.ZipException: duplicate entry: com/google/gson/annotations/Expose.class有什么帮助吗?
https://stackoverflow.com/questions/33732060
复制相似问题