"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.