React Native: JAVA_HOME is not set and no 'java' command could be found in your PATH

前端 未结 9 2008
清歌不尽
清歌不尽 2020-12-23 16:44

I\'ve followed step by step the official Getting Started. I started from a clean linux install and installed everything required as per the \"Building Projects with Native C

9条回答
  •  礼貌的吻别
    2020-12-23 17:04

    I think the right way to find the internal Java used by the Android Studio is to

    1. Open Android Studio
    2. Go to File->Other Settings->Default Project Structure/JDK Location:
    3. and copy what ever string is specified there

    This will not require memorising the folder or searching for java and also these steps wil take of any future changes to the java location by the Android Studio team changes I suppose

提交回复
热议问题