Android Webview gives net::ERR_CACHE_MISS message

后端 未结 7 1833
深忆病人
深忆病人 2020-12-04 16:56

I built a web app and wants to create an android app that has a webview that shows my web app. After following the instructions from Google Developer to create an app, I suc

7条回答
  •  甜味超标
    2020-12-04 17:54

    Use

    if (Build.VERSION.SDK_INT >= 19) {
            mWebView.getSettings().setCacheMode(WebSettings.LOAD_CACHE_ELSE_NETWORK);
        }
    

    It should solve the error.

提交回复
热议问题