I want to include Netty's jar into my android project.
I've tried adding it directly as a reference, but I'm getting java.lang.NoClassDefFoundError, pointing to a class from Netty.
Another way is to put the library directly into the libs folder, and when I'm doing so, the Eclipse's Android plugin would automatically include the jars in the libs folder into the 'android private library'. In that case it seems that I cannot attach a source.
I tried deleting the android private library, and link everything through the reference library. It seems that the android cannot find class from reference library; because it's causing the NoClassDefFoundError exception.
I want to know if there're proper ways to solve this problem.
NOTE: I do know that there're lots of posts about this issue.. such as this method (from the link above):
- Create a folder called libsin your project's root folder
- Copy your JAR files to the libsfolder
- Now right click on the Jar file and then select Build Path > Add to Build Path, which will create a folder called 'Referenced Libraries' within your project
But it's just causing the NoClassDefFoundError exception.
I'm using Eclipse Kepler.
 
     
     
     
     
     
    