【問題描述】
當(dāng)我們修改edit custom VM options的時(shí)候故源,因?yàn)榕渲缅e(cuò)誤參數(shù)的時(shí)候祭钉,可能導(dǎo)致Android studio打開失敗。
If you already have a 64-bit JDK installed, define a JAVA HOME vanable in
Computer> System Properties> System Settings> Environment Vanables.
Failed to create JVM. JVM Path: C. Android Studio Installyrevre
【解決方案】
找到自定義配置的文件目錄,刪除重新打開studio就行了威恼。
vmoptions有三個(gè)目錄路徑,我目前是Android studio4.1版本,
和你自己安裝的版本對應(yīng)目錄下即可箫措。
1. C:\Users\Administrator\AppData\Roaming\Google\AndroidStudio4.1\studio64.exe.vmoptions
(刪除這個(gè)目錄下的這個(gè)文件腹备,重新打開studio)
2.C:\Users\Administrator\.AndroidStudio4.0\config\studio64.exe.vmoptions
(如果有則刪除,無則忽略)
3.C:\AndroidStudio_Install\bin\studio64.exe.vmoptions
(默認(rèn)安裝時(shí)候的配置參數(shù)斤蔓,參考植酥,不要?jiǎng)h)