A WebView running in an emulator in Android Studio cannot access the Internet, but can Chrome?

I installed Android studio 1.0.1 and followed this page https://developer.chrome.com/multidevice/webview/gettingstarted to wrap the site in the application.

However, when I started in the emulator, I received the following error.

Web-page is unavailable

The webpage at https: // ..... cannot be loaded because:

Net :: ERR_NAME_NOT_RESOLVED

However, I tried to click the link and launched the website in Chrome without any problems.

+4
source share
3 answers

This may seem obvious, but make sure 3G is enabled in your emulator: enter image description here

, (. ):

enter image description here

, 3G : enter image description here

, . , , , - .

+5

?

0

manifest.xml, , Windows 7:

Click Start → Run, type cmd, click OK. Copy and paste this into the command line: netsh winsock reset catalog Press Enter Then copy and paste this into: netsh int ip reset reset.log Press Enter. When the computer restarts.

0
source

Source: https://habr.com/ru/post/1569681/


All Articles