0

I tried to open an android studio project done by my friend ,First i got the error

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

Then i updated my jre and i opened the project again Now i am getting two errors they are

***1. Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:

  1. Unsupported Java Your build is currently configured to use Java 19 and Gradle 7.3.3. Possible solution:
  • Open Gradle wrapper settings, change distributionUrl property to use compatible Gradle version and reload the project***

I tried updating my gradle but still i am getting the same error . Anyone please help me to resolve the issue

I referred : Changing distributionUrl on gradle-wrapper.properties from 6.9 to 7.1.1 gives an error

How/when to generate Gradle wrapper files?

How to Add Stacktrace or debug Option when Building Android Studio Project

Flutter & Android: Your build is currently configured to use Java 17.0.2 and Gradle 7.0.2

Rahul R
  • 303
  • 2
  • 11

0 Answers0