Android Studio Flamingo went stable today!

https://android-developers.googleblog.com/2023/04/android-studio-flamingo-is-stable.html

Also, we also announced that starting with Giraffe, the Kotlin DSL will now be the default build script for new projects:
https://android-developers.googleblog.com/2023/04/kotlin-dsl-is-now-default-for-new-gradle-builds.html

(There's also experimental support for version catalogs, which is a much better way to manage dependencies than buildSrc and other similar tricks!)

Android Studio Flamingo is stable

News and insights on the Android platform, developer tools, and events.

Android Developers Blog

@tornorbye After upgrading and applying the migrations I get the following error:

'compileDebugJavaWithJavac' task (current target is 1.8) and 'kaptGenerateStubsDebugKotlin' task (current target is 17) jvm target compatibility should be set to the same Java version.

Is there anything I need to change? Or is this a bug?

@tornorbye It seems there is an issue with kapt requiring JVM toolchain, which can only be used from AGP v8.1.0-alpha09: https://kotlinlang.org/docs/gradle-configure-project.html#gradle-java-toolchains-support. The workaround I found is adding the following to the project's build.gradle:

allprojects {
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile) {
kotlinOptions.jvmTarget = "1.8"
}
}

I can see many of us getting caught by this issue and the solution is not easy to find or understand.

Configure a Gradle project | Kotlin

Kotlin Help