If you've encountered issues after upgrading to Android Studio LadyBug, here's how you can resolve them:
Modify settings.gradle File:
Under the plugins section in your settings.gradle file, add the following line:
id "com.android.application" version "8.3.2" apply false
Gradle Plugin Error:
If you encounter any errors related to the Gradle plugin version, update your gradle-wrapper.properties file with the following:
distributionUrl=https://services.gradle.org/distributions/gradle-8.4-all.zip
After making these changes, clean and rebuild your project to ensure everything compiles correctly.
You can read more on this issue on this github : credits