log4j-1.2.16.jar, NoClassDefError on Android 5.1,on previus versions all right. Any known issues?

Sosrique

New member
Jul 22, 2016
1
0
0
Visit site
I'm using a jar library (Apache log4j-1.2.16.jar ) in an application. This application is developed initially targetting on Android 4.1 and up.
Now the need is to make it run on Android 5.x and up.

The problem is that even changing target and building sdk, application crashes on Android 5.1 we are testing on, giving a NoClassDefError on a class of the mentioned library.

Tryed to change sdk version for building, and even got a newer version of the library but it doesn't work.

However on Android 4.x devices it all goes smoothly.

So i'm wandering if the matter has to do with the newer versions of Android, in particular in how the ClassLoaders work.

Has anyone heard about this matter and possibly know a fix?

Thank to anyone who could help..