javascript - net::ERR_CACHE_MISS react-native-webview on Android 5
问题描述
打开 WebView
<WebView
onNavigationStateChange={handleURL}
style={[styles.webView, !loading && { display: "none" }]}
source={{
uri: "https://google.com"
}}
/>
但是在 android 5-7 上出现了这个错误。我无法打开任何网址。谷歌,例如
Encountered an error loading page, Object {
"canGoBack": false,
"canGoForward": false,
"code": -1,
"description": "net::ERR_CACHE_MISS",
"loading": false,
"target": 679,
"title": "",
"url": "https://google.com/",
}
at node_modules/react-native-webview/lib/WebView.android.js:167:12 in _this.onLoadingError
at [native code]:null in callFunctionReturnFlushedQueue
解决方案
推荐阅读
- go - 如何使用前缀参数更改 fmt.Println 的结果
- cmake - 使用 CMake 的 install 命令重命名现有文件
- android - 选择 TabLayout 时更改每个 Tab 文本颜色的正确方法是什么?
- javascript - this.props.navigation.navigate 在 onAuthChanged() 中不起作用
- r - R 函数 eigen() 返回的特征向量是否错误?
- bash - 在 bash 中获取列表的一部分
- symfony - Symfony 4 验证约束替代方案
- javascript - Yii2 pjax 不更新容器中的 div
- django - Django ORM分别查询正负值的总和
- python - if inside for 循环如何改变函数的大 O(时间复杂度)?