compileDebugJavaWithJavac

  1. 现象:
    在AS中进行编译,出现如下错误:

Error:Execution failed for task ‘:xxx:compileDebugJavaWithJavac’.

Compilation failed; see the compiler error output for details.

2 在网上找了几种方案:.

1解决:
缺少了一个lib的引用,在iml文件中,加上相应的lib引用,问题解决。
2 修改compilesdkVersion
3 重启as

我出现这个问题的原因是因为把as com.android.tools.build:gradle:3.0.0 更新到3.0.1 然后第二天再跑导致的. 最后用了方法2和方法3成功!

猜你喜欢

转载自blog.csdn.net/qq_36331942/article/details/78924904