Android 编程 HtmlUnit
我在 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.
I am using httpclient on android, and I have added all the external jars to my classpath. However, when I startup eclipse it gave me java heap space errors, so I went in the .ini file and I "upped" the numbers, and it worked. However, when I try to start the application on my android emulator it wil not start, and when I try to load it on my phone it says it cannot be installed even though I have unliscenced sources turned on, on my phone. Is it possible that i have "too many" .jar files in my android project? Also I get errors in my project when it builds the workspace, please look bellow
Thanks so much!
[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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
HttpClient 内置于 Android 框架中。您无需添加另一个 .jar 文件即可使用 HttpClient。
http://developer.android.com/reference/org/apache /http/package-summary.html
HttpClient is built-in to Android Framework. You don't need to add another .jar file to use HttpClient.
http://developer.android.com/reference/org/apache/http/package-summary.html