Android Studio Java not found in Mac OS

Source: Internet
Author: User

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.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.