I am facing Error:java.lang.NoClassDefFoundError
when importing a jar
and using its classes.
This problem might be thought of a duplicate to this question. But I have a different condition:
I have prepared a .jar
file from Eclipse SDK for Android
.so it has folder such as /res /assets
etc.
I have goggled for solution tried some of the solutions:
- Build path-> Configure BuildPath->Add External jar
- Copy .jar to /libs directory.
None of them worked!!!
P.S. In a previous project i have already used SQLCipher.jar
file by just by adding it to the build path and have faced no problems.Though It had some filename.dat
(which i have to add into /assets folder) and i have no idea what so ever if that has any role in accessing methods in the class of the jar.