Android - net::ERR_NAME_NOT_RESOLVED
See original GitHub issueBug description:
When trying the example of usage Android returns an error Encountered an error loading page {"canGoBack": false, "canGoForward": false, "code": -2, "description": "net::ERR_NAME_NOT_RESOLVED", "loading": false, "target": 855, "title": "Webpage not available", "url": "https://reactnative.dev/"}
Searching on Google i saw something about AppRegistry
if this screen its going to be my root page, but is not my case, and trying on iOS everything is working just fine
To Reproduce:
Try the example of usage in a functional component
import React, {useRef, useState} from 'react';
import {SafeAreaView} from 'react-native';
// More imports
const HomeScreen = () => {
// More stuff
return (
<SafeAreaView>
<WebView source={{uri: 'https://reactnative.dev/'}} />
</SafeAreaView>
);
};
Expected behavior:
Screenshots/Videos:
iOS (working)
Android (not working)
Environment:
- OS: macOS
- OS version: 10.15.6
- react-native version: 0.61.5
- react-native-webview version: 10.8.3
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:31
Top Results From Across the Web
How to Fix an Error ERR_NAME_NOT_RESOLVED on ...
How to Fix ERR_NAME_NOT_RESOLVED on Android? · Solution 1: Change the DNS Server Settings for Your Internet Connection · Solution 2: Try to...
Read more >ERR_NAME_NOT_RESOLVED: 6 Proven Methods to Fix It
The ERR_NAME_NOT_RESOLVED error happens simply because the system can't find the correct IP address or the computer is storing old and outdated information....
Read more >How to solve err_name_not_resolved - SupportHost
How to fix err_name_not_resolved · Check the address · Check the connection · Clear cookies and cache · Disable the browser preload feature...
Read more >How to Fix an Error ERR_NAME_NOT_RESOLVED ... - Xeonbit
Xeonbit.com: How to Fix an Error ERR_NAME_NOT_RESOLVED on Android Devices? · Go to menu Settings > Wi-Fi; · Long press your Wi-Fi network...
Read more >ERR_NAME_NOT_RESOLVED - How to Fix on Android, iOS ...
ERR_NAME_NOT_RESOLVED – How to Fix on Android, iOS, Windows · 1. Ensure you have Internet connectivity (very common cause of the error) ·...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m experiencing this problem as well.
The emulator has no access to internet, so try it:
related thread: https://stackoverflow.com/questions/42736038/android-emulator-not-able-to-access-the-internet