ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的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 的关系不大 解决方案