Error:could not determine Java version--about Android Studio JDK settings and JVM version settings

Source: Internet
Author: User

Recently encountered a problem in the installation of AS, after the new project, compile error, error:could not determine Java version

Self-evident: can be fixed jdk problem, online to find the possibility of 2

First: The JDK path is not associated well

Workaround: File-->project structure-->sdk location, set the JDK position on the line

Second, this situation should only be encountered in the MAC IOS operating system

It's info.plist. The JVM version tag under this configuration file is not set.

Workaround:

1. Finder, find Android Studio in the application;

2. Right-click to display the contents of the package, find Info.plist in the directory and open with any text editor;

3. Find jvmversion and change the version number in <string>1.6*</string> to the version number of your system JDK (note: Android studio only supports jdk1.6 and above

such as,<string>1.6*</string>,<string>1.7*</string> or <string>1.7+</string>

Note: I've been looking for a problem with my Mac, so I haven't found the Info.plist profile (presumably a Mac-specific profile) under Ubuntu, and later discovered that the JDK path was wrong, and Sweat came in.

Error:could not determine Java version--about Android Studio JDK settings and JVM version settings

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.