I am writing a library. When I include it as a module dependency inside the same project, the app works. If i generate aar file and include it libs folder, I am getting java.lang.NoClassDefFoundError. What is stranger is that the class is written by me and is inside the library. It is not external library class. The following error is thrown from inside the library.
java.lang.NoClassDefFoundError: com.pacakge.ChatView$5
at com.packge.ChatView.someFunction(ChatView.java:190)
at line 190, I am calling a static method of another class which is inside my library. Please help me understand why am I getting this error.