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