I am having an external library (constants.aar)
file. I have kept this .aar
file in to my Android library module project's (sdk-module)/lib
folder. This sdk-module
has classes which uses methods from constants.aar
.
Compiling the sdk-module
generates sdk-module.aar
file.
In my application i am including this sdk-module.aar
file. When i am trying to use certain class files of sdk-module
, i am getting NoClassDefFoundError
.
java.lang.NoClassDefFoundError: Failed resolution of: "class file from constant.aar"; Caused by: java.lang.ClassNotFoundException: Didn't find class "xyz" on path:
I have unzipped the sdk-module.aar
file and i can see that constants.aar
file is available in its /lib
folder.
How to resolve this issue?