Skip to content

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

@xfyre

Description

@xfyre

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions