hey does some one know this error? if I do gradlew...
# android
m
hey does some one know this error? if I do gradlew assemble I get this, I have databinding enabled in gradle
Copy code
> Task :myapp:kaptDebugKotlin FAILED
e: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
a
Try it with JDK 8, this should work.
m
I am a bit confused, which jdk 8 should I use? and what is the best practice? since I have openJDK 11 as default, how do I switch properly back and forth?
a
See https://stackoverflow.com/questions/18487406/how-do-i-tell-gradle-to-use-specific-jdk-version Note that I'm suggesting this only as a workaround. The situation you are describing looks like a bug. If possible, please report this to http://kotl.in/issue with an attached project to reproduce the issue.
m
thanks, will try!
z
your JDK version is too new, they removed JAXB from the newer versions, potentially breaking a bunch of development processes, backends, etc -- you need to use JDK8 for it to work
🙏 1
j
Are you trying to build an app with Databinding enabled on Intellij IDEA ?
Or Android Studio
m
databing enabled in build.gradle building from terminal