Execution failed for task ':app:compileDebugJavaWithJavac'

项目3.0版本,引入了2.0版本的modle出现的异常。

因为新版JDK1.8编译和旧版编译不一样,导致出现问题。

经过多次查看和调试,我的解决方法就是降低了modle相容性版本。

Execution failed for task ':app:compileDebugJavaWithJavac'

 

注意:2.0的项目升级到3.0时  build.grade 配置文件里面 引入关键字

compile要修改成implementation

Execution failed for task ':app:compileDebugJavaWithJavac'

 

有些问题也可以参考此链接:https://blog.csdn.net/wjj1996825/article/details/79838430