Android Webview: “Uncaught TypeError: Cannot read property 'getItem' of null”

前端 未结 1 1014
予麋鹿
予麋鹿 2020-12-08 12:53

I am creating a simple android app which has a webview which should display a url. When I give the url as google.com or facebook.com it loads properly but when I give my url

相关标签:
1条回答
  • 2020-12-08 13:21

    you need to do

    WebSettings settings = webView.getSettings();
    settings.setDomStorageEnabled(true);
    

    see details ERROR/Web Console: Uncaught TypeError: Cannot call method 'getItem' of null at http://m.youtube.com/:844

    0 讨论(0)
提交回复
热议问题