webview:"找不到网页" or "page not found"
来源:互联网 发布:高仿手表淘宝店 编辑:程序博客网 时间:2024/05/30 22:55
解决办法:
实现WebViewClient下面的方法:
@SuppressWarnings("deprecation")@Overridepublic void onReceivedError(WebView view, int errorCode, String description, String failingUrl) { // Handle the error}@TargetApi(android.os.Build.VERSION_CODES.M)@Overridepublic void onReceivedError(WebView view, WebResourceRequest req, WebResourceError rerr) { // Redirect to deprecated method, so you can use it in all SDK versions onReceivedError(view, rerr.getErrorCode(), rerr.getDescription().toString(), req.getUrl().toString());}
参考
https://stackoverflow.com/questions/4997677/android-webview-onreceivederror/4997988#4997988
https://stackoverflow.com/questions/32769505/webviewclient-onreceivederror-deprecated-new-version-does-not-detect-all-errors/32813234#32813234
阅读全文
0 0
- webview:"找不到网页" or "page not found"
- webView找不到网页
- webview找不到网页解决办法
- Page not found The requested page could not be found.
- Django之page not found
- ChangeConflictException:Row not found or changed 找不到行或行已更改
- ChangeConflictException:Row not found or changed 找不到行或行已更改
- webview中的网页,超链接打电话,找不到网页
- 【微信小程序】Page not found 错误
- WCF分布式开发常见错误(4):The type or namespace name 'DataContract' could not be found DataContract找不到
- webview访问assets目录下找不到网页
- android开发为什么webview找不到网页
- Linux命令找不到Command not found
- CentOS, 找不到dump命令:command not found
- error C3861: identifier not found | 找不到标识符
- -bash: php: command not found 命令找不到
- -bash: php: command not found 命令找不到
- maven项目找不到类not class found
- 黑盒--测试用例设计方法
- python操作MongoDB
- C++设计模式八--AdapterPattern(适配器模式)
- win10 vs15编译caffe
- 虚拟机迁移原理
- webview:"找不到网页" or "page not found"
- oracle中多表联合查询
- Java中使用Dom和Sax两种思想解析XML
- Java实现-两两交换链表中的节点
- LintCode 解题记录17.6.26 ~ 17.7.2
- Android沉浸式状态栏
- 开发优秀书籍目录
- 学技术还是要学扎实
- 线程池