I\'m working on MacOS and just starting with react-native.
react-native
One of the first steps to get started is to run: react-native run-android or
react-native run-android
Really the fastest way to get around this error is to use JDK 8. Except when you really need to use JDK9.
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Don't forget to change your enviroment variable JAVA_HOME to the new JDK version!