0%

android-grade-settings

Introduction

Today I got the following error after upgrade to Android Studio LadyBug.

1
Your build is currently configured to use Java 21.0.3 and Gradle 8.0.

So I reinstall the old version android studio Koala and the error still exists. So I google it and found the following solution on stackoverflow.

  1. Open File | Settings | Build, Execution, Deployment | Build Tools | Gradle
  2. Downgrade the JDK version to previous version, for example jbr-17.

android-grade-settings

The reason that old version still not work is because after upgrade Android Studio to LadyBug, it automatically set Java 21.0.3 and Gradle 8.0. Even if you downgrade the Android Studio, the settings still remain the same. So you need to manually change the settings to make it work.