Android 1.6 中捆绑了哪个版本的 Apache HTTP 客户端?

发布于 2024-08-28 15:34:27 字数 365 浏览 8 评论 0原文

我想要一个单独的项目,在普通 JVM 中运行我的服务器通信代码,以进行集成测试。此代码使用这些内置于 Android 框架中的库...

http://developer.android.com/reference/org/apache/http/client/package-summary.html

有人知道 Apache HTTP 客户端应该是什么版本吗?我想在没有 Android 测试的情况下运行它,因为 Android 测试速度慢得令人痛苦。

I want to have a seperate project that runs my server communication code in a normal JVM for the purposes of integration testing. This code uses these libraries which are build into the Android Framework...

http://developer.android.com/reference/org/apache/http/client/package-summary.html

Does anybody know what version of Apache HTTP Client this is supposed to be? I want to run it without the Android tests which are painfully slow.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

归属感 2024-09-04 15:34:27

Android 中的 HttpClient 副本实际上与任何已发布的版本都不匹配,如 此邮件列表跟踪 显示。谷歌似乎已经对开发代码库进行了任意快照并使用了它。

最接近的匹配似乎是:

  • httpcore-4.0-beta2.jar
  • httpclient-4.0-beta1.jar

对我来说似乎是一个巨大的错误。

The copy of HttpClient in Android does not actually match any of the released versions, as this mailing list trail shows. Google seem to have taken an arbitrary snapshot of the development code base and used that.

The closest matches seem to be:

  • httpcore-4.0-beta2.jar
  • httpclient-4.0-beta1.jar

Seems like a colossal cock-up to me.

淡写薰衣草的香 2024-09-04 15:34:27

4.x。我不确定次要版本代码,但最新版本的 httpmime 和 apache-mime4j 与 Android 1.5 中包含的 HttpClient 一起包含在我的代码中时可以工作。

4.x. I'm not sure on the minor version code, but the latest versions of httpmime and apache-mime4j work when included in my code alongside the HttpClient included in Android 1.5.

蓝梦月影 2024-09-04 15:34:27

android 1.5 似乎没有使用 apache 4.1.x。 mvn dependency:tree 显示 android 4.0.1.2 的以下内容

com.google.android:android:jar:4.0.1.2:provided
[INFO] |  +- commons-logging:commons-logging:jar:1.1.1:provided
[INFO] |  +- org.apache.httpcomponents:httpclient:jar:4.0.1:provided
[INFO] |  |  \- org.apache.httpcomponents:httpcore:jar:4.0.1:provided 

It doesn't appear android 1.5 is using apache 4.1.x. mvn dependency:tree shows the following for android 4.0.1.2

com.google.android:android:jar:4.0.1.2:provided
[INFO] |  +- commons-logging:commons-logging:jar:1.1.1:provided
[INFO] |  +- org.apache.httpcomponents:httpclient:jar:4.0.1:provided
[INFO] |  |  \- org.apache.httpcomponents:httpcore:jar:4.0.1:provided 
要走就滚别墨迹 2024-09-04 15:34:27

您可以下载准确的平台中包含的源代码

You can download the exact source included in the platform.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文