Android Studio中的“接收失败”错误

时间:2018-08-20 11:12:28

标签: android logcat

我已经在Webview中打开了本地html文件。网页中唯一的功能是JavaScript超时功能,该功能每10秒运行一次(但是我不确定这段代码是否可以在webview上运行,但这不是我的问题)。

function checkConnection(){
    try {
         if (navigator.onLine){
         //do something
         }
        else{
         //do something
        }
        }catch(err){}
    setTimeout(checkConnection,10000);
}

我在logcat中每秒收到很多错误。我不知道此错误是来自Webview还是其他原因?

Receive failed, errno is :11
Receive failed, errno is :11
Receive failed, errno is :11
Receive failed, errno is :11
Receive failed, errno is :11
Receive failed, errno is :11
Receive failed, errno is :11
Receive failed, errno is :11
Receive failed, errno is :11
Receive failed, errno is :11
Receive failed, errno is :11
....

0 个答案:

没有答案