'org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$
I am getting runtime exception while building the project. I have added Jetpack compose dependencies extra to the build.gradle file. I could see the following errors
Task :mobile:compileDebugKotlin FAILED
e: This version (1.0.0-beta07) of the Compose Compiler requires Kotlin version 1.4.32 but you appear to be using Kotlin version 1.5.30 which is not known to be compatible. Please fix your configuration (or `suppressKotlinVersionCompatibilityCheck` but don't say I didn't warn you!).
w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
C:/Users/abcd/StudioProjects/efgh/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.5.30/5fd47535cc85f9e24996f939c2de6583991481b0/kotlin-stdlib-jdk8-1.5.30.jar (version 1.5)
C:/Users/abcd/StudioProjects/efgh/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.5.30/525f5a7fa6d7790a571c07dd24214ed2dda352fe/kotlin-stdlib-jdk7-1.5.30.jar (version 1.5)
C:/Users/adcd/StudioProjects/efgh/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.6.10/b8af3fe6f1ca88526914929add63cf5e7c5049af/kotlin-stdlib-1.6.10.jar (version 1.6)
C:/Users/adcb/StudioProjects/efgh/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.6.10/c118700e3a33c8a0d9adc920e9dec0831171925/kotlin-stdlib-common-1.6.10.jar (version 1.6)
w: Some runtime JAR files in the classpath have an incompatible version. Consider removing them from the classpath
> Task :automotive:compileDebugKotlin
> Task :automotive:compileDebugJavaWithJavac
> Task :automotive:dexBuilderDebug
> Task :automotive:mergeProjectDexDebug
> Task :automotive:mergeDebugJavaResource
> Task :automotive:packageDebug
> Task :automotive:createDebugApkListingFileRedirect
> Task :automotive:assembleDebug
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':mobile:compileDebugKotlin'.
> Compilation error. See log for more details
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 13s
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
