You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npm run android でエミュレーターにアプリインストール後、Metro Bundlerは立ち上がっているのに、以下のエラーが発生する。
Could not connent to development server.
Try the following to fix the issue:
・Ensure that the packager server is running
・Ensure that your decice/emulator is connected to your machine and has USB debugging enabled - run 'abd devices' to see a list of connected devices
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
事象
npm run android
でエミュレーターにアプリインストール後、Metro Bundlerは立ち上がっているのに、以下のエラーが発生する。解決方法
デフォルトの接続先は
10.0.2.2:8081
だが、localhost:8081
に変更すると接続できるようになる。※ポート番号を変更している場合はそのポート番号を指定する
原因
不明 本来エミュレーターでlocalhostを指定するとエミュレーター内のループバック インターフェースに接続するはず・・・
https://developer.android.com/studio/run/emulator-networking.html
Beta Was this translation helpful? Give feedback.
All reactions