저는 MacOS에서 작업 중이며 react-native
.
시작하기위한 첫 번째 단계 중 하나는 다음을 실행하는 것입니다. react-native run-android
또는 react-native run-ios
. 하지만이 오류가 발생합니다.
react-native run-android
결과:
Scanning folders for symlinks in /Users/ric/myprojs/albums/node_modules (6ms)
Starting JS server...
Building and installing the app on the device (cd android && ./gradlew installDebug)...
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.
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 --version
.
java --version
결과:
java 9.0.1
Java(TM) SE Runtime Environment (build 9.0.1+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)
mbp:albums ric$ java --version
java 9.0.1
Java(TM) SE Runtime Environment (build 9.0.1+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)
편집하다
내 javac 버전 :
javac --version
결과:
javac 9.0.1
이 문제를 해결하는 방법에 대한 아이디어가 있습니까?
javac -version
하시기 바랍니다 터미널 너무