清泛IT社区

标题: 【解决】java.lang.ArrayIndexOutOfBoundsException: length=1; index=-1 at java.util.ArrayList.get(ArrayList.java:439) at com.sunny.CustomWebView.CustomWebView.getIndex( [打印本页]

作者: App Inventor 2     时间: 前天 09:51
标题: 【解决】java.lang.ArrayIndexOutOfBoundsException: length=1; index=-1 at java.util.ArrayList.get(ArrayList.java:439) at com.sunny.CustomWebView.CustomWebView.getIndex(

使用 CustomWebView 拓展报错:
  1. java.lang.ArrayIndexOutOfBoundsException: length=1; index=-1 at java.util.ArrayList.get(ArrayList.java:439) at com.sunny.CustomWebView.CustomWebView.getIndex(Unknown Source:26) at com.sunny.CustomWebView.CustomWebView.access$200(Unknown Source:0) at com.sunny.CustomWebView.CustomWebView$ChromeClient.onProgressChanged(Unknown Source:4) at hb.handleMessage(chromium-SystemWebView.apk-default-495156106:208) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:201) at android.os.Looper.loop(Looper.java:288) at android.app.ActivityThread.main(ActivityThread.java:8060) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1091)
复制代码
原因:没有调用 SetWebView 方法导致的。





欢迎光临 清泛IT社区 (https://bbs.tsingfun.com/) Powered by Discuz! X3.3