React Native Expo Android WebView

React Native Expo Android WebView,android,react-native,webview,android-webview,expo,Android,React Native,Webview,Android Webview,Expo,我正在使用Expo开发React原生应用程序。 尝试使用“react native WebView”加载WebView 这是WebView元素: <WebView style={styles.container} source={{ uri: "https://www.google.com/" }} ref={ref => (this.webview = ref)} cacheEnabled={false}

我正在使用Expo开发React原生应用程序。 尝试使用“react native WebView”加载WebView

这是WebView元素:

<WebView style={styles.container}
            source={{ uri: "https://www.google.com/" }}
            ref={ref => (this.webview = ref)}
            cacheEnabled={false}    
/>
博览会版本-3.19.2

安卓版本-5.0


找不到有效的解决方案,有人知道缺少了什么吗?

这是Android问题,在androidx中解决了。appcompat:appcompat:1.2.0,目前,您可以使用1.1.0


您需要升级expo版本。它可能会解决你的问题

正如沙希德所指出的,这似乎是一个安卓问题,它在androidx中得到了解决。appcompat:appcompat:1.2.0然而,最新的expo版本仍然使用1.1.0,所以我担心目前没有解决办法,我们不得不等待expo团队


一些人通过降级他们的SDK版本和Expo客户端应用解决了这个问题。但我不确定这为什么奏效。也许您可以试试。

谢谢,但我已经在使用最新的SDK版本(37.0.0),只是运行了expo升级以确保我的所有软件包都设置为正确的版本。但问题仍然没有解决
Encountered an error loading page, Object {
  "canGoBack": false,
  "canGoForward": false,
  "code": -1,
  "description": "net::ERR_CACHE_MISS",
  "loading": false,
  "target": 25,
  "title": "",
  "url": "https://www.google.com/",
}