企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
[TOC] ## java 版本冲突 ``` \* What went wrong: Execution failed for task ':receive\_sharing\_intent:compileDebugKotlin'. \> 'compileDebugJavaWithJavac' task (current target is 1.8) and 'compileDebugKotlin' task (current target is 17) jvm target compatibility should be set to the same Java version. Consider using JVM toolchain: https://kotl.in/gradle/jvm/toolchain ``` 是由于在 依赖库中存在 ``` android { // ... compileOptions { sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8 } kotlinOptions { jvmTarget = '1.8' } ``` 由于 kotlinOptions 的指定导致了,报错,而与 compileOptions 的关系不大 解决方案