修改AndroidStudio的Boot Java Runtime for the IDE后,IDE打開報錯無法運行
一、問題
我想在AndroidStudio里使用markdown支持插件,豈料報錯
Your environment does not support JCEF, cannot use Markdown Editor
在網上搜羅一番,修改了 java runtime for the IDE,一番操作猛如虎,重啟后報錯!無法啟動了!
CompileCommand: exclude
org/jetbrains/kotlin/serialization/deserialization/TypeDeserializ
er.simpleType
CompileCommand: exclude
org/jetbrains/kotlin/serialization/deserialization/TypeDeserializ
er.toAttributes
java.lang.Error: java.lang.NullPointerExceptionError occurred
during initialization of VM
Failure when starting JFR on_create_vm_2
Please try to reinstall the IDE.
For support, please refer to
https://jb.gg/ide/critical-startup-errors
報錯咱也看不懂,但咱看懂了一點,讓咱重裝IDE,不,永遠不可能重裝!下面直接講解決辦法
二、解決辦法
打開AndroidStudio的配置文件路徑C:\Users\用戶名\AppData\Roaming\Google\AndroidStudio(版本號),該文件夾里的studio64.exe.jdk這個文件,刪掉這個文件即可。
該文件內容如下:C:\Users\用戶名\.jdks\corretto-11.0.23
沒錯,就這一行內容,一行內容可以讓你重裝IDE,因此以后修改配置要手下留情了。
大功告成!
人心如良苗,得養乃滋長。苗以泉水灌,心以理義養。一日不讀書,胸臆無佳想。一月不讀書,耳目失精爽。

浙公網安備 33010602011771號