Java.lang.ExceptionInInitializerError #546
Replies: 3 comments
-
Make sure that your build.gradle and settings.gradle are configured correctly, and that your app's AndroidManifest.xml includes any necessary permissions. Also you could try to catch the initialization exception and print the stack trace.
|
Beta Was this translation helpful? Give feedback.
-
I appreciate the help! I've looked over my files many times, but I am still new to app development and I cannot determine the source of error. Does anything seem obviously wrong with this stack trace? 2023-08-29 20:13:12.158 12555-12555/com.dji.videostreamdecodingsample E/AndroidRuntime: FATAL EXCEPTION: main Here is the app build.gradle: apply plugin: 'com.android.application' android {
} dependencies {
} |
Beta Was this translation helpful? Give feedback.
-
just from the sideline as I'm unlikely to be of much use since I am a Java dummy;) what is the exception exactly telling?
am I right that it is raised in the Java string class from an instance deep inside the android runtime? and what kind of error exactly is "b.a.a.a.a." and the next lines? never seen this before. are you using own (or 3rd party) native code in your app? all those .so's .. |
Beta Was this translation helpful? Give feedback.
-
Hello! I have successfully downloaded, built, and ran the demo application on this repository. I am trying to add ABJ functionality to another app I am building, but the app instantly crashes whenever a function from ABJ is called. In my case, the app crashes at:
val session = Session()
I imported the autobahn library the same way I have with other libraries. File > Import Module. Android Studio appears to install all dependencies and I can call ABJ functions in my code without any errors. The app builds successfully but instantly crashes when it is ran. The error that I am seeing is a Java.lang.ExceptionInInitializerError. ABJ appears to be imported correctly, but I am still getting this error. I have "implementation project(path: ':autobahn')" in my main build gradle file. Is there any other initialization steps that I am missing?
I would really appreciate any help/feedback, thanks!
Beta Was this translation helpful? Give feedback.
All reactions