修改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
相关推荐
阿俊-全栈开发7 小时前
LikeShop 单商户SaaS商城分销模块二开:佣金计算与结算逻辑实现
java·开发语言·微服务·likeshop·likeshop开源商城·likeshop多商户
wuminyu10 小时前
C++协程实现接收端的零拷贝Buffer管理原理剖析
java·linux·c语言·jvm·c++
m0_3807438710 小时前
C++中的freopen的用法实例详解
开发语言·c++
Escalating_xu11 小时前
【Python】基础语法(1):常量、变量、类型、输入输出与运算符
开发语言·python
jimy111 小时前
polymorph.cpp里面的“析构函数、智能指针”问题
开发语言·c++
m0_3807438711 小时前
PHP 8.3 缓存清除不生效怎么排查
开发语言·php
朝朝辞暮i12 小时前
C++ 第 6 课:switch —— 多状态选择
开发语言·c++·算法
小凡geo12 小时前
本地商家 GEO:用脚本一键生成 FAQPage 结构化数据,让 AI 切片更稳
开发语言·人工智能·python·microsoft·搜索引擎·ai
朝朝辞暮i12 小时前
C++ 第 4 课:if / else —— 让程序自己做决定
开发语言·c++
波力海苔夹心脆67512 小时前
C# 值类型与引用类型详解:存储位置、赋值机制、参数传递、相等比较、装箱拆箱与常见陷阱
开发语言·jvm·经验分享·笔记·c#·.net