Build fails in Flutter sdk 3.19.5.
This can be avoided by writing the following to build.gradle, but since it requires downloading the package source and including it in the project, I would like to request official support for the package.
android {
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlin {
jvmToolchain(17)
}
}