Search code examples
androidxstream

Could not find class 'com.thoughtworks.xstream.XStream'


Im using XStream jar file in android project from this link.

Im getting this exception

Could not find class 'com.thoughtworks.xstream.XStream'

at this line XStream xStream = new XStream(new DomDriver());

i followed this link to solve the issue https://stackoverflow.com/a/3643015/341443 but not working.

Please let me know how to solve this issue or any thing im missing here.

Thank you


Solution

  • This project is done by somebody and given to me for further implementation.

    So, After so much headache, i find that the project contains Android Private Library which includes XStream jar file. You can see below image

    enter image description here

    i fix this issue by check the Android Private Library in Order and Export. This link helped me to solve this issue. Hope it saves somebody time ....

    enter image description here