Android Webview gives net::ERR_CACHE_MISS message

后端 未结 7 1813
深忆病人
深忆病人 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:42

    I tried above solution, but the following code help me to close this issue.

    if (18 < Build.VERSION.SDK_INT ){
        //18 = JellyBean MR2, KITKAT=19
        mWeb.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE);
    }
    

提交回复
热议问题