解决:com/android/tools/idea/gradle/run/OutputBuildAction has been compiled by a more recent version
com/android/tools/idea/gradle/run/OutputBuildAction has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class fil
·
一、问题说明
com/android/tools/idea/gradle/run/OutputBuildAction has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
52 是指 jdk 8,55 是指 jdk 11。它大体的意思是编译时用的是 11 版本,而运行时却是 8,前后不一致了,你需要将其设置为一致的状态。
我用 Android Studio Dolphin 版本的时候出现这个问题,尝试了将系统环境中的 jdk 版本和 AS 中的版本均改为 8.0 依然会报该问题。
二、解决方案
查询了很多文章,都没能成功修改掉 AS 的编译版本,最后将 AS 版本升级到最新版本后成功解决了该问题。
当下 AS 最新版本:Android Studio Electric Eel | 2022.1.1 Patch 2
更多推荐




所有评论(0)