Greetings.
I am a developer from China, currently working on a webDAV client for Android platform.
And I do have some serious problems to make it work, hope that someone here can point out a way
for me to fix.
I have used it on Desktop environment, which have full JDK installed.
However, it is not the case on Android platform.
2) I put {commons-codec-1.4.jar, commons-logging-1.1.1.jar, httpclient-4.1.2.jar,httpcore-
4.1.3.jar, slf4j-api-1.6.2.jar} as library. These are the library in the original Sardine project.
But it does not work. Lots of errors.
I googled around, and found that it needs jaxb.jar. I got the jar file, and only 1 error left.
It is in SardineUtil.java, in the last line.
@SuppressWarnings("unchecked")
public static <T> T unmarshal(InputStream in) throws IOException{
....
....
return (T) unmarshaller.unmarshal(new SAXSource(reader, new InputSource(in))); // the error line
}
And Eclipse gives me a hint :
"The type javax.xml.stream.XMLStreamReader cannot be resolved. It is indirectly referenced from required .class files"
I googled, people on the net say it needs a jsr173.jar. I found it, too.
Put it back in the library, and the error in SardineUtil.java has gone.
BUT:
SardineImpl.java has a few errors because of having jsr173.jar as library.
And it states the arguments not applicable.
I stuck here for a whole day. Tried everything out.
Hope that someone have time drop me a line and point out how it is possible for me to fix this.
P.S. I tried some other Sardine Android libraries too, they have some workarounds, but do not work well enough to use in production.
The same test case, it will pass on Sardine desktop version( the one
available on google code), but will not pass for other android portings, as
they are not 100% complete.
Looking forwarding for a point-out.
Regards,
-Harry.