WebView调试

文章仅做个人笔记使用:

chrome浏览器自带的 webview调试

需要在代码中配置: WebView.setWebContentsDebuggingEnabled(true); //支持debug调试

inspect 出现空白页,是因为chrome的配置文件没有配置成功,需要链接外网配置。

如果外网配置后依然无法使用,需要配置host
如下:
172.217.161.180 author-dot-betaspike.appspot.com
172.217.161.180 jmoore-dot-android-experiments.appspot.com
172.217.161.180 mission-author-dot-betaspike.appspot.com
172.217.161.180 drivenotepad.appspot.com
172.217.161.180 virustotalcloud.appspot.com
172.217.161.180 joinjoaomgcd.appspot.com
172.217.161.180 m-dot-betaspike.appspot.com
172.217.161.180 download-chromium.appspot.com
172.217.161.180 google-developers.appspot.com
172.217.161.180 chrometophone.appspot.com
172.217.161.180 chrome-devtools-frontend.appspot.com
172.217.161.180 apis-explorer.appspot.com
172.217.161.180 betaspike.appspot.com
172.217.161.180 hstspreload.appspot.com
172.217.161.180 lfe-alpo-gm.appspot.com
172.217.8.244 netlog-viewer.appspot.com
172.217.14.116 go-tour-zh.appspot.com

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

友情链接更多精彩内容