修改AndroidStudio的Boot Java Runtime for the IDE后,AndroidStudio启动就报错

我选择了jdk11,重启Android Studio结果就报错了

Cannot start the IDE

CompileCommand: exclude

org/jetbrains/kotlin/serialization/deserialization/TypeDeserializer.simple

Type

CompileCommand:exclude

org/jetbrains/kotlin/serialization/deserialization/TypeDeserializer.toAttributes

java.lang.UnsupportedClassVersionError:com/intellij/platform/core/nio/fs/MultiRoutingFileSystemProvider hasbeen compiled by a more recent version of the Java Runtime (class fileversion 61.0), this version of the Java Runtime only recognizes class fileversions up to 55.0Error occurred during initialization of VMFailure 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

问题在重装后仍未解决

尝试修改idea.properties和studio64.exe.vmoptions配置均无效

从错误提示可以明确看出是JDK版本不匹配导致的

解决方案有两种:

  1. 删除配置文件:

    • 路径:C:\Users\用户名\AppData\Roaming\Google\AndroidStudio(版本号)\studio64.exe.jdk
    • 直接删除该文件即可
  2. 升级JDK版本:

    • 修改为更高版本的JDK路径,例如: C:\Users\Administrator.jdks\corretto-17.0.15
相关推荐
折哥的程序人生 · 物流技术专研8 小时前
第4篇:Lambda 简化策略模式(Java 8+)
java·设计模式·策略模式·函数式编程·lambda·代码简化·扩充系列
researcher-Jiang8 小时前
高性能计算之OpenMP——超算习堂学习1
android·java·学习
烽火聊员9 小时前
查看Android Studio错误日志
android·ide·android studio
西门吹-禅10 小时前
java springboot N+1问题
java·开发语言·spring boot
DLYSB_10 小时前
生命通道:如何用 HIS 医疗系统直连网络声光终端,打造“零延误”的危急值响应网关?
java·网络·数据库·报警灯
skywalk816310 小时前
设计并实现段言的 C FFI 绑定机制 @Trae
c语言·开发语言·python·编程
weixin_BYSJ198710 小时前
SpringBoot + MySQL 乒乓球运动员信息管理系统项目实战--附源码04954
java·javascript·spring boot·python·django·flask·php
AI小码10 小时前
LLM 应用的缓存工程:当每次 API 调用都在燃烧成本
java·人工智能·spring·计算机·llm·编程·api
Hui Baby11 小时前
Spring Security
java·后端·spring
IT笔记11 小时前
【Rust】Rust Match 模式匹配详解
java·开发语言·rust