LoginSignup
15
9

More than 5 years have passed since last update.

Android Studioのエミュレータがネットワークに接続できない問題の解決方法

Last updated at Posted at 2018-07-03

現象

環境
Mac OS High Sierra
Android Studio 3.1.3

WebViewで以下のような表示になっており、
DNSで名前解決ができていない。

image.png

解決方法

エミュレータをCLIからDNSサーバー指定のオプション付きで起動すると解決

cd $ANDROID_HOME/emulator/

emulatorの名前を確認

./emulator -list-avds

DNSをGoogle Public DNSに設定

./emulator -avd YOUR_EMULATOR_NAME -dns-server 8.8.8.8,8.8.8.

でエミュレータが起動するが、これだとエラーが解消していた。

参考:
https://stackoverflow.com/questions/48411091/mac-os-high-sierra-10-13-2-android-emulator-has-no-internet-connection

15
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
15
9