修改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
相关推荐
NE_STOP9 小时前
Vide Coding--AI编程工具的选择
java
LDR00610 小时前
Type-C 快充全面升级!LDR6601 赋能个人护理便携电机,重塑剃须刀 / 理发器新体验
c语言·开发语言
雪碧聊技术10 小时前
Tree.js是什么?一文讲透
开发语言·javascript·ecmascript
码云数智-园园10 小时前
C++20 Modules 模块详解
java·开发语言·spring
程序员黑豆10 小时前
JDK 下载安装与配置详细教程
java·前端·ai编程
小宇宙Zz10 小时前
Maven依赖冲突
java·服务器·maven
swordbob10 小时前
NIO的channel中什么是 fd(File Descriptor,文件描述符)
java·开发语言·nio
咖啡八杯11 小时前
GoF设计模式——享元模式
java·spring·设计模式·享元模式
十五喵源码网11 小时前
基于springboot2+vue2的租房管理系统
java·毕业设计·springboot·论文笔记
摇滚侠11 小时前
IDEA 创建 Java 项目 手动整合 SSM 框架
java·ide·intellij-idea