How to fix has been compiled by a more recent version of the Java Runtime (class file version 55.0)

preview_player
Показать описание

How to fix the errors

1. Cause: dagger/hilt/android/plugin/HiltGradlePlugin 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
dagger/hilt/android/plugin/HiltGradlePlugin 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

* Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

In android studio
Рекомендации по теме
Комментарии
Автор

I want to keep Java 1.8, as other maven dependencies are replying on that
Still this error with 1 particular JAR files
How to solve that without upgrading to Java 11 version?

pranshuc
Автор

hii sir...actually iam using java 17 in intellij and i cant find sdk 17th version its showing 15th can you rectify this?

bhavyaathukuri
Автор

Facing exactly same error. But this solution didnt work for me. Still getting the same error

papcooffset
Автор

thank you!!solved my problem and save my current project...

bansiparmar
Автор

File -> settings --> Build, Execution, deployment --> Build tools -- gradle --cred_new --select the version --ok --> apply --> Build --> Build Bundle/apk --> Build apk

snehalraut
Автор

buddy, thank you. Why so few views? how are you ?

evgenkras