I'm stuck in an error after updating android studio. I have Android Studio Flamingo 2022.2.1. After update to new version I get this error:
Unsupported Java. Your build is currently configured to use Java 17.0.6 and Gradle 6.1.1.
Possible solution:
Here is my settings in files:
gradle-wrapper.properties:
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
build.gradle (app lavel):
task wrapper(type: Wrapper) { gradleVersion = '7.2' }
build.gradle (project lavel):
dependencies { classpath "com.android.tools.build:gradle:4.0.2" }
Might be I set wrong version but I'm not able to figure about in which file what changes resolved my problem. Please help me to resolve this issue. Thank you
I try to change version to 7.+ but when ever I tried and import again same issue again and again popup.
It seems Java 17 requires Gradle 7.3.
Try upgrading your gradle-wrapper
Source: https://docs.gradle.org/current/userguide/compatibility.html