Deploying to Google Play via Mobile Deployment fails consistently at the "Build AAB with Flutter" step. Package: com.vaybu.app
Full error:
Execution failed for task ':google_maps_flutter_android:compileReleaseKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
> Internal compiler error. See log for more details
e: file:///home/builder/.gradle/caches/8.12/transforms/[...]/jetified-android-maps-utils-4.1.0-api.jar!/META-INF/library_release.kotlin_module Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.3.0, expected version is 2.1.0.
e: file:///home/builder/.gradle/caches/8.12/transforms/[...]/jetified-kotlin-stdlib-2.3.10.jar!/META-INF/kotlin-stdlib-jdk7.kotlin_module Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.3.0, expected version is 2.1.0.
FAILURE: Build failed with an exception.
BUILD FAILED in 4m 44s
Running Gradle task 'bundleRelease'... 285.1s
Flutter's own suggested fix:
[!] Your project requires a newer version of the Kotlin Gradle plugin.
Update the version number of the plugin with id "org.jetbrains.kotlin.android" in the plugins block of /home/builder/clone/android/settings.gradle.
Alternatively, update /home/builder/clone/android/build.gradle: ext.kotlin_version = '<latest-version>'
I don't have direct access to edit android/settings.gradle or android/build.gradle through the FlutterFlow UI, so I can't apply Flutter's own suggested fix myself.
Expected behavior: the app should build and deploy to Google Play's Internal Testing track successfully.
Questions for the team:
- Did you recently upgrade google_maps_flutter_android or android-maps-utils in the build image without upgrading the Kotlin Gradle plugin to match?
- Can you confirm the current Kotlin Gradle plugin version used in the Google Play build image?
- Is this a known/tracked regression? There's a similar community report from about 2 months ago ("Latest FF and Flutter version gives Kotlin version errors") with the same "compiled with an incompatible version of Kotlin... 2.3.0... expected... 2.1.0" signature, on a different package.
Package name: com.vaybu.app