0

I have just started using selenium to do some HTML parsing in a java project, but for some reason, when I try to run it in an Android environment, I get a ClassDefNotFound error.

I set up my classpath the same way for both java/android projects and have the correct standalone jar. Is there any reason why Android cannot accomplish this even with the supplied library?

Also I am using Eclipse, developing on Android API 16. Thanks!

1 Answer 1

1

Try moving the .jar to yourproject/libs/. ADT scans this folder ('libs', not 'lib') for libraries, and sometimes gets confused if they're added manually from somewhere else.

Don't forget to refresh the folder in the package browser after you add it.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.