gradlew build
问题描述
Task :model:common:compileDebugJavaWithJavac FAILED
The following annotation processors are not incremental: jetified-dbflow-processor-4.2.4.jar (com.github.Raizlabs.DBFlow:dbflow-processor:4.2.4), jetified-arouter-compiler-1.1.4.jar (com.alibaba:arouter-compiler:1.1.4), jetified-auto-service-1.0-rc2.jar (com.google.auto.service:auto-service:1.0-rc2).
Make sure all annotation processors are incremental to improve your build speed.
解决方案
升级本地的jdk到jdk11(因为android studio中gradle用到的jdk版本跟本地的不是一个版本,所以android studio打包没有问题,但是本地调用gradlew打包时却报错)