1

我没有在我的项目中使用的确切编码(目前因为我没有回到我的房间),但我相信我所做的是将所有必要的库添加到 Unirest.io 以及导入 jar文件(将其放入我的 lib 文件夹后),它们可以在这里找到:http: //oss.sonatype.org/content/repositories/releases/com/mashape/unirest/unirest-java/1.4.5/unirest-java-1.4 .5.jar

在依赖项部分,我添加了如下内容:

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'

进入 build.gradle 文件的 dependencies {} 部分以及 lib 文件夹中的 Unirest jar。

4

0 回答 0