1、webview开启调试模式

 WebView.setWebContentsDebuggingEnabled(true)

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

3、打开app的webView页面

webView调试

4、进入调试效果

webView调试

 

使用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

相关文章:

  • 2021-07-18
  • 2021-03-28
  • 2021-09-07
  • 2021-12-13
  • 2022-02-07
  • 2021-11-20
  • 2021-10-04
  • 2022-01-08
猜你喜欢
  • 2022-02-02
  • 2021-08-27
  • 2021-05-25
  • 2021-07-06
  • 2022-12-23
  • 2022-12-23
  • 2021-11-24
相关资源
相似解决方案