Fork me on GitHub
#cljsrn
<
2016-09-19
>
mac08:09:30

I am getting the following output when running react-native run-android

BUILD SUCCESSFUL

Total time: 24.764 secs

This build could be faster, please consider using the Gradle Daemon: 
Starting the app on emulator-5554 (/home/mac/Android/Sdk/platform-tools/adb -s emulator-5554 shell am start -n com.futureapp/.MainActivity)...
adb server version (32) doesn't match this client (36); killing...
* daemon started successfully *
Starting: Intent { cmp=com.futureapp/.MainActivity }

mac09:09:46

If I try to reload I get Could not connect to the development server.

vikeri09:09:18

@mac Are you running npm start?

mac09:09:13

@vikeri I wasn't but just tried it. Doesn't appear to make a difference.

mac09:09:19

@vikeri The packager doesn't react at all when I rebuild the project using react-native run-android - is that how it is suppose to be?

vikeri09:09:24

Have you tried double clicking R in the emulator?

mac09:09:46

@vikeri Yes - now I get a 503

mac09:09:42

@vikeri Ah, now it works in the emulator, but I still get a 503 on the device.

vikeri09:09:58

Hmm strange, I can’t recall 503 errors

vikeri09:09:18

Have you opened the ports in adb?

mac09:09:10

@vikeri Yes I have run both : adb reverse tcp:8081 tcp:8081 and adb reverse tcp:3449 tcp:3449

mac09:09:29

@vikeri is localhost:8081 the correct url for the device to look at? it appears weird that it would be localhost

vikeri10:09:57

@mac it is localhost, your javascript runs in Chrome when debugging