Android.mk jar file import java.lang.Error: packaging failure: java.lang.ClassNotFoundException

155 Views Asked by At

I have recently started android application development in AOSP and came across an agenda of getting code coverage for manual testing scenarios. I came across an option of using an emma.jar library to get the same done. But when I use the same the jar file as a part of my Android AOSP project, the library is added and compilation was successful. During run time when I try to access a function, the application crashes with the following error

FATAL EXCEPTION: main Process: com.panasonic.dairse.logger.loggerapp, PID: 4843 java.lang.Error: packaging failure: class [com.vladium.logging.ILogLevels] not found {java.lang.ClassNotFoundException: com.vladium.logging.ILogLevels}

2

There are 2 best solutions below

4
Constantin N. On

Please add this in Your "Manifest.xml"

 <application.....>
 //add this line
 <activity name = "com.vladium.logging.ILogLevels">
 </application>
2
You Kim On

Please check your proguard rules for emma.

-keep class com.vladium.** {
    *;
}