crossbario / autobahn-java

WebSocket & WAMP in Java for Android and Java 8
https://crossbar.io/autobahn
MIT License
1.52k stars 426 forks source link

Java.lang.ExceptionInInitializerError #544

Closed kylenietfeld closed 1 year ago

kylenietfeld commented 1 year ago

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!