gpt4 book ai didi

java - Android 编程 HtmlUnit

转载 作者:行者123 更新时间:2023-12-02 08:11:38 26 4
gpt4 key购买 nike

我在 android 上使用 httpclient,并且已将所有外部 jar 添加到我的类路径中。然而,当我启动 eclipse 时,它​​给了我 java 堆空间错误,所以我进入 .ini 文件并“增加”了数字,它起作用了。但是,当我尝试在 Android 模拟器上启动该应用程序时,它不会启动,并且当我尝试将其加载到手机上时,它说无法安装,即使我在手机上打开了未经许可的源。我的 android 项目中是否有可能有“太多”.jar 文件?另外,我的项目在构建工作区时出现错误,请查看下面

非常感谢!

[2011-09-05 22:30:39 - AndroidTest] Dx warning: Ignoring InnerClasses attribute for an      
anonymous inner class
(org.apache.xalan.lib.sql.SecuritySupport12$8) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.

最佳答案

HttpClient 内置于 Android 框架中。您无需添加另一个 .jar 文件即可使用 HttpClient。

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

关于java - Android 编程 HtmlUnit,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7315314/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com