Android Studio Java not found in Mac OS
The official version of Android Studio has been released for some time. Android Studio for Mac may encounter issues with Java not found: Android Studio was unable to find a valid JVM.
Solve this problem:
First, check whether jdk is installed on the mac system and check your own jdk version. You can enter the java-version command on the terminal to view the version. If jdk is not installed, install jdk first. You can download and install jdk on the official Oracle website.
Next, determine your jdk version. If the jdk version is not 1.6, the above problems may occur and Android Studio cannot be started. The reason is that the default JVM version 1.6 is required in the configuration file of Android Studio, so you can simply modify the configuration file of Android Studio. The method is as follows:
1. Find the location of your Android Studio. app file, which is usually under the Applications folder.
2. Select the Android Studio. app file, right-click the menu, and select Show Package Contents to open Android Studio. app (in fact, the app file in Mac system is a special folder ).
3. Go to the Contents folder and find the Info. plist configuration file.
4. you can open Info. in the plist configuration file, find the <key> JVMVersion <key> label. The <string> 1.6 <string> label is displayed. By default, JVM1.6 is used, now the latest JDK is 1.8. Change 1.6 to the jdk version you have installed and save the changes to solve this problem. Alternatively, simply change 1.6 + to be compatible with jdk Versions later than 1.6.