ExceptionInInitializerError in Android app?

后端 未结 3 784
南旧
南旧 2021-01-18 12:25

In my Android app the WebView activity class has following line,

webView.addJavascriptInterface(new JSInterface(this), \"Android\");   

And

3条回答
  •  南方客
    南方客 (楼主)
    2021-01-18 13:04

    java.lang.ExceptionInInitializerError android OS 11

    if this is related to OkHttp then update your version 4.4.0.

    In this version its fixed.

    implementation 'com.squareup.okhttp3:logging-interceptor:4.4.0'

    thanks.

提交回复
热议问题