React Native error: “Could not determine java version from '9.0.1'.”

前端 未结 11 1808
悲&欢浪女
悲&欢浪女 2020-11-28 03:50

I\'m working on MacOS and just starting with react-native.

One of the first steps to get started is to run: react-native run-android or

11条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-28 04:02

    ---- December 2018 --- keep attention --- React Native does not work with Java versions higher than 8, so you need to uninstall your 9.0.1 version. To do so, execute the following commands:

    cd /Library/Java/JavaVirtualMachines/
    ls -l
    

    Identify the folder containing your Java Version, then remove it

    sudo rm -rf jdk.x.x_xxx.jdk
    

    After that you can download and install java 8 from oracle again. Refer to jdk8 download page

提交回复
热议问题