gradle assembleRelease
Task :mylibrary:compileReleaseJavaWithJavac FAILED
Gradle may disable incremental compilation as the following annotation processors are not incremental: databinding-compiler-3.4.2.jar (androidx.databinding:databinding-compiler:3.4.2).
Consider setting the experimental feature flag android.enableSeparateAnnotationProcessing=true in the gradle.properties file to run annotation processing in a separate task and make compilation incremental.
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':mylibrary:compileReleaseJavaWithJavac'.javax/xml/bind/JAXBException
- Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. - Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.1.1...
BUILD FAILED in 10s
应该是jdk版本的问题, 您用的该是jdk 9 以上的版本,解决办法参见这里