Reputation: 283
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!
Upvotes: 0
Views: 404
Reputation: 4376
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.
Upvotes: 1