Closed 45manu95 closed 2 weeks ago
It's been fixed some time ago through https://github.com/Abedalkareem/games_services/pull/168 but not yet released to the pub.dev
Closing as this is fixed. @Abedalkareem Can we publish the latest to pub.dev soon?
@theLee3
Thanks, Yes published now!
Hi! I was update my app and i got this error:
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':games_services:compileDebugKotlin'.
Try:
BUILD FAILED in 9m 27s Error: Gradle task assembleDebug failed with exit code 1
Exited (1).
I think the error is due to a mismatch between the Java versions used for compiling Kotlin and Java code in this project. Specifically, the Kotlin compiler is configured to use Java 17, while the Java compiler is set to use Java 8.
I think the solutions is to update the build.gradle of the Affected Module (:games_services) in order to ensure that both the Kotlin and Java compilers use Java 17.
Example: android { compileOptions { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 }
}