Does anyone have an example of an android studio project that import Unirest via gradle?

笑着哭i 提交于 2019-12-13 19:48:07

问题


I don't have the exact coding (at the moment since I'm not back in my room) I used in my project but I believe what I did was add all of the libraries necessary to Unirest.io as well as importing the jar file (after putting it into my lib folder) they have available here: http://oss.sonatype.org/content/repositories/releases/com/mashape/unirest/unirest-java/1.4.5/unirest-java-1.4.5.jar

In the dependencies portion I added something like this:

compile 'org.json:json:20140107'
compile 'org.apache.httpcomponents:httpclient:3.6'
compile 'org.apahe.httpcomponents:httpasyncclient:4.0.2'
compile 'org.apache.httpcomponents:httpmime:4.3.6'

into the dependencies {} portion of the build.gradle file along with the Unirest jar in the lib folder.

来源:https://stackoverflow.com/questions/29638676/does-anyone-have-an-example-of-an-android-studio-project-that-import-unirest-via

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!