janus-gateway-android icon indicating copy to clipboard operation
janus-gateway-android copied to clipboard

ExceptionInitializerError in JanusServer Attach() method

Open Lex74 opened this issue 8 years ago • 0 comments

java.lang.ExceptionInitializerError (JanusServer.java:157) I've got this error on Android 4.0.4. With 7.1.1 works fine. Occurs cuz AsyncTask creates inside of Runnable. Workaround for this:

private Handler handler = new Handler(Looper.getMainLooper());

handler.post(new Runnable() { public void run() { new AsyncAttach().execute(callbacks); } });

Lex74 avatar Dec 19 '16 06:12 Lex74