If you encounter the following error while installing the guard, you will most likely encounter the problem mentioned in this discussion.
Warning: The post-install step did not complete successfully
If so, check what the watchman window displays. If it is something like this:
Watchman: watchman --no-pretty get-sockname returned with exit code=1, signal=null, stderr= 2018-08-24T17:37:44,142: [0x7fffab20d380] while computing sockname: failed to create /usr/local/var/run/watchman/macbookpro-state: No such file or directory
Do
> brew uninstall watchman > cd /usr/local/var/ > sudo chown -R $(whoami) var > brew update > brew install watchman
Kill / close the device emulator and run the command
> react-native run-android
You should see a failed action with a message like
> com.android.builder.testing.api.DeviceException: No connected devices!
Now repeat the command to see that the compilation was successful and the application opens in the emulator.
> react-native run-android
Krishna
source share