"BUG" Android Studio always prompts that JVM cannot be started, JDK configuration failed, error code, and androidjvm

Source: Internet
Author: User

"BUG" Android Studio always prompts that JVM cannot be started, JDK configuration failed, error code, and androidjvm

Android Studio 2.2 was installed a few days ago.

Everything is fine, but when I modify the configuration file studio64.exe. vmoptions to modify the maximum memory (ensure smooth operation), The AS will no longer run.

The error message is: error code-1. The JAVA_HOME parameter must be configured. This parameter cannot point to JRE, but must point to JDK.

 

After environment variables are configured, all kinds of detection are normal-but the AS still cannot be started.

Reinstall AS -- the same error is still reported and cannot be started.

 

It is useless to find a lot of information on the Internet -- conclusion:

 

When the AS startup fails after the Android Studio configuration is incorrect,

> Delete C: \ Users \ Administrator \. AndroidStudio2.2 \ (yes, this is the directory configured by the user. This directory will not be deleted because of uninstallation. Therefore, the BUG cannot be fixed during reinstallation)

> In fact, after deleting this configuration directory, the AS can be started properly.

> However, it is recommended that you reload the AS statements after deleting the directory.

 

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.