本文介绍了的JetS3t在Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在一个Android应用程序中使用的JetS3t库,和我不断收到错误的REST服务时,我使用的库。

I am trying to use the Jets3t library within an Android application, and I keep getting errors with the Rest service when I use the library.

04-27 16:47:39.491: ERROR/S3Service(225): Couldn't initialize a sax driver for the XMLReader

我曾尝试包括Xerces的库和绯红色库,它不打出好成绩。我得到这个错误:

I have tried to include the Xerces library and the Crimson library, and it dont play well. I get this error:

Attempt to include a core class (java.* or javax.*) in something other
than a core library. It is likely that you have attempted to include
in an application the core library (or a part thereof) from a desktop
virtual machine. This will most assuredly not work. At a minimum, it
jeopardizes the compatibility of your app with future versions of the
platform. It is also often of questionable legality.

If you really intend to build a core library -- which is only
appropriate as part of creating a full virtual machine distribution,
as opposed to compiling an application -- then use the
"--core-library" option to suppress this error message.

有什么我可以做的就是它的工作?

Is there something I can do to get it working ?

推荐答案

显然,你可以解决SAX驱动程序问题通过设置下面的系统属性:

Apparently you can work around the SAX driver issue by setting the following system property:

System.setProperty("org.xml.sax.driver", "org.xmlpull.v1.sax2.Driver");

信贷这个答案去布鲁诺Hautzenberger上的JetS3t用户的论坛:的

Credit for this answer goes to Bruno Hautzenberger on the JetS3t User's forum:http://groups.google.com/group/jets3t-users/browse_thread/thread/d39f32168fd0c217?hl=en

这篇关于的JetS3t在Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-27 06:38