我正在尝试使用终端在Android模拟器上运行我的react-native应用程序。我正在使用命令
react-native run-android
然后我收到错误
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine java version from '9.0.1'.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html
我已经更新了Java版本并设置了JAVA_HOME。