java.lang.ExceptionInInitializerError in Android

前端 未结 5 907

I\'m trying to create an Android Application that can verify a face But when I try to run my app on my emulator (using Eclipse), I have this result in my logcat:



        
5条回答
  •  太阳男子
    2021-01-18 04:22

    As already pointed out by others you have a missing dependency to a project called Java Native Access (JNA). If you look carefully at your StackTrace you see at the end this Exception: java.lang.NoClassDefFoundError: com.sun.jna.Platform. A short Google search ended in the repository above.

    I would try to download all related jars which have the Android prefix. You might also need just android-arm.jar however this would break it on devices with another processor, so add them all.

提交回复
热议问题