请我需要有关如何解决此错误的帮助,我已经搜索了堆栈溢出中的所有答案,但没有一个能解决我的问题。我最近更新了我的 kotlin,当我想运行一个新的 kotlin 应用程序时,我收到了这个错误。我尝试了堆栈溢出中的所有步骤,但都不起作用。这是错误消息
failed
:app:compileDebugKotlin
Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
C:/Users/HP/newfolder/caches/transforms-3/a8b763bee6c7278a49a4c205da65b911/transformed/jetified-kotlin-stdlib-jdk8-1.5.30.jar (version 1.5)
C:/Users/HP/newfolder/caches/transforms-3/e478bf55927823f4da54fcc6c8971874/transformed/jetified-kotlin-stdlib-jdk7-1.5.30.jar (version 1.5)
C:/Users/HP/newfolder/caches/transforms-3/84c66d4f4ecf6f746e3716128956475c/transformed/jetified-kotlin-stdlib-1.6.0.jar (version 1.6)
C:/Users/HP/newfolder/caches/transforms-3/a891d209549d183ec22b0fd6f8a659f5/transformed/jetified-kotlin-stdlib-common-1.6.0.jar (version 1.6)
C:/Users/HP/newfolder/caches/transforms-3/18ec897b17c934613389ac8a536f0724/transformed/navigation-common-2.4.1-api.jar!/META-INF/navigation-common_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.2.
C:/Users/HP/newfolder/caches/transforms-3/345269ef286a72cb64a64bd63517dfe5/transformed/navigation-fragment-2.4.1-api.jar!/META-INF/navigation-fragment_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.2. …
Run Code Online (Sandbox Code Playgroud)