drapanjanas / re-natal

Bootstrap ClojureScript React Native apps
MIT License
1.22k stars 100 forks source link

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

Open xfyre opened 5 years ago

xfyre commented 5 years ago

Symptoms

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 commented 5 years ago

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.