Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android emulator can't load application when debugging is enabled #223

Open
xfyre opened this issue May 26, 2019 · 1 comment
Open

Android emulator can't load application when debugging is enabled #223

xfyre opened this issue May 26, 2019 · 1 comment

Comments

@xfyre
Copy link

xfyre commented May 26, 2019

Symptoms

  • Android JS files are configured using re-natal use-android-device avd && re-natal use-figwheel
  • Without remote debugging enabled, application loads in emulator normally
  • When you enable remote debug, application reload fails with the following error: The script at 'http://10.0.2.2:8081/target/android/goog/base.js' failed to load (after 30s or so)

Cause

Host 10.0.2.2 is not accessible from the debugger runtime (it's an internal emulator alias for host machine loopback interface, so it's visible only in emulator runtime).

Workaround

Manually replace 10.0.2.2 with local network interface address (10.0.0.11 in my case) in index.android.js.

@fgui
Copy link

fgui commented Aug 5, 2019

I had the same issue. The workaround works well in my case. I just have to remember to edit the file each time after re-natal use-figwheel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants