1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Android studioのemulatorでインターネットに繋がらない現象を解決する

Posted at

Android studioでemulatorを起動し外部APIへGETリクエストを実行しようとするもレスポンスが取得できずなんでだろうと思っていたらそもそもインターネットにできない状態でした.

環境

端末: Nexus5X
API version: 28

現象

cannot_reached.png

対応

ホスト側のDNSを8.8.8.8(GoogleのDNS)に変更後,emulatorを再起動することで解決
dns_setting.png

再起動後
reached.png

参考

Android emulator not able to access the internet
Android 9(Pie)でHTTP通信を有効にする

1
0
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?