错误日志

Error:Execution failed for task ‘:app:compileDebugJavaWithJavac’.
Compilation failed; see the compiler error output for details.

最后终于找到原因,是编译版本的问题
环境信息:
com.android.tools.build:gradle:3.4.3
gradle:6.7.1

在compileSdkVersion 32的情况下,项目默认使用的是jdk 8,调整到jdk 11后问题解决

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐