Android Studio appears Error:compilesdkversion Android-x requires compiling with JDK 7 issue

Source: Internet
Author: User

The initial installation of Android Studio shoes may be more or less problematic, such as the emergence of error:compilesdkversion android-x requires compiling with JDK 7 problems, Although I have downloaded jdk7 or jdk8 but still hint at such a mistake, why is it? It turns out that we are the path of our JDK is not set or our JDK is set to JDK6 by default.

So, to make Android studio work properly, we need to reset the path to our JDK, as shown in the steps. (jdk7 default download path is /Library/Java , Jdk6 's default download path is /System/Library/Java ).

After entering the directory in the JDK location, select the path of your own JDK installation.

Android Studio appears Error:compilesdkversion Android-x requires compiling with JDK 7 issue

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.