首页 > 技术文章 > webView调试

ggband 2019-06-13 10:44 原文

1、webview开启调试模式

 WebView.setWebContentsDebuggingEnabled(true)

2、google浏览器输入:chrome://inspect

3、打开app的webView页面

4、进入调试效果

 

使用chrome浏览器,输入chrome://inspect可以调试android app里面的网页,如果inspect的时候,是空白,

那就在C:\Windows\System32\drivers\etc\hosts文件加入

61.91.161.217 chrome-devtools-frontend.appspot.com
61.91.161.217 chrometophone.appspot.com

推荐阅读