Gradle may disable incremental compilation as the following annotation processors are not ......
导入一个已有工程时build失败,gradle task ':app:compileDebugJavaWithJavac' failed,报错如下:
> Task :app:compileDebugJavaWithJavac FAILED
Gradle may disable incremental compilation as the following annotation processors are not incremental: databinding-compiler-3.4.0.jar
(androidx.databinding:databinding-compiler:3.4.0).
Consider setting the experimental feature flag android.enableSeparateAnnotationProcessing=true in the gradle.properties file to run a
nnotation processing in a separate task and make compilation incremental.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> javax/xml/bind/JAXBException
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:compileDebugJavaWithJavac'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java
:205)
......
Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
at org.gradle.api.internal.tasks.compile.AnnotationProcessingCompileTask.instantiateProcessor(AnnotationProcessingCompileTask
.java:137)
......
网上搜索该问题,在https://segmentfault.com/a/1190000020028624和https://segmentfault.com/q/1010000020030377中找到了问题原因解决方法,问题原因是javax.xml.bind不在jdk 9+的默认类路径上,所以找不到这些类,降低使用的jdk版本就可以解决此问题。
Gradle may disable incremental compilation as the following annotation processors are not ......相关推荐
- Android老項目出现javax/xml/bind/JAXBException异常问题解决
有時候報錯: > Task :app:compileDebugJavaWithJavac FAILED Gradle may disable incremental compilation as ...
- Android Studio中注解处理器(annotation processors)的增量编译失败分析
导入第三方aar库后,编译出现如下异常: > Task :app:compileK4t3ReleaseJavaWithJavac FAILED Gradle may disable increm ...
- 遇见BUG(2)去掉你的增量编译使能!
在使用Verilog进行项目开发的时候会遇到各种各样的错误,语法错误还好,容易排查,但是遇到了逻辑错误以及其他隐形的错误总是让人头大,下面这个问题,用一种非人类语言提示的错误,着实让人望而生畏,不过也 ...
- Gradle发布4.7版本,支持Java 10
\ 看新闻很累?看技术新闻更累?试试下载InfoQ手机客户端,每天上下班路上听新闻,有趣还有料! \ \\ gradle是一个综合性的多语种构建工具,已经发布了4.7版,新功能包括: \\ 增量式注解 ...
- gradle 很好用的么
Gradle 其实是很好用的 2017, Apr 14 by Tesla Ice Zhang Gradle 是一款使用 Kotlin (划掉) Groovy 编写的 JVM 构建工具,其易用性和 Ma ...
- Android Studio 4.2Previw版本编译错误提示Disable offline mode and rerun the build
编译出现的问题 项目在Android Studio 4.2Previw版本编译错误提示Disable offline mode and rerun the build No cached versio ...
- AndroidStudio Gradle Plugin 下载失败
(1) Gradle Plugin 更新出现错误 failed Cause: dl.google.com:443 failed to respond FAILURE: Build failed wit ...
- vs2017: fatal error LNK1210: 已超过内部 ILK 大小限制;链接时使用 /INCREMENTAL:NO
vs2017碰到个怪问题:LINK : fatal error LNK1210: 已超过内部 ILK 大小限制:链接时使用 /INCREMENTAL:NO 找了一下, https://stackove ...
- The `android.dexOptions.incremental` property is deprecated and it has no effect on the build proces
编译报错:The android.dexOptions.incremental property is deprecated and it has no effect on the build pro ...
最新文章
- ZJOI2013 防守战线
- 关于minikube使用HTTP_PROXY拉取镜像后取消代理的操作过程记录
- 015. Object event handling debug - Parameter COM_IOITF_DEBUG
- [Golang] 第三方包应该如何安装--在线和离线
- 201521123121 《Java程序设计》第14周学习总结
- Linux shell tips and tricks
- 专题开发十二:JEECG微云快速开发平台-基础用户权限
- meta 标签的学习
- Python基础(10) Python创建list
- Oracle教程之管理索引(一)--Oracle管理索引
- Mysql 分区(range,list,hash)转载
- iosiOStextView实现文字高度自适应
- SAS 9.4 破解时间限制
- 【微分方程数值解】常\偏微分方程及其常用数值解法概述
- 站斧超级浏览器风控系统助力Lazada商家安全管理
- 查看变量数据类型的python内置函数_查看变量类型的Python内置函数是
- R语言系列:rgl包安装出错的解决办法
- 中山大学计算机软件专业,【广州日报】中山大学在珠海校区新成立人工智能学院和软件工程学院...
- 联友科技软件测试,联友科技
- 3D汽车作品大赏!汇集世界各地CG大佬们的“汽车梦”