有人举过通过gradle导入Unirest的android studio项目的例子吗?

有人举过通过gradle导入Unirest的android studio项目的例子吗?,android,build,gradle,repository,unirest,Android,Build,Gradle,Repository,Unirest,我现在没有确切的编码,因为我不在我的房间里,我在我的项目中使用过,但我相信我所做的是将所有必需的库添加到Unirest.io,以及在将jar文件放入我的lib文件夹后导入jar文件,它们在这里提供: 在依赖项部分,我添加了如下内容: compile 'org.json:json:20140107' compile 'org.apache.httpcomponents:httpclient:3.6' compile 'org.apahe.httpcomponents:httpasyncclien

我现在没有确切的编码,因为我不在我的房间里,我在我的项目中使用过,但我相信我所做的是将所有必需的库添加到Unirest.io,以及在将jar文件放入我的lib文件夹后导入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文件的依赖项{}部分以及lib文件夹中的Unirest jar。

Unirest不是为在Android上使用而设计的。我强烈建议您使用在Android上工作的库。我们有许多这样的图书馆,特别是。除此之外,请求非现场资源被认为是堆栈溢出的话题。