• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Can't run Gradle on Android Studio

SrLimon

Lurker
Sep 27, 2022
1
0
Hello everyone!

I have a problem using Gradle on Android Studio. I'm doing my final degree project and I received an application made in Android Studio, I have instructions to run it in Java 8, using Android Gradle Plugin Version 3.3.0 and Gradle Version 4.10.1, apparently these are values that they don't want me to change.

The error message I get when building the project is: "Cause: 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
".

From what I understand the project is being compiled using Java 11 and trying to run using Java 8. To fix this problem I have gone to Project Structure, Gradle Settings and selected Gradle JDK version 1.8. I have also tried building the program on Windows, Ubuntu, having only Java 8 or Java 11 installed on my computer, changing the JAVA_HOME environmental variable, but nothing works.

I apologize if my explanation was not very good, English is not my native language and I am new to Android Studio and Gradle. I will give you any information you think is convenient to solve the problem, thanks!
 
Gradle.png
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones