android / codelab-android-databinding

Apache License 2.0
103 stars 84 forks source link

Project not buildable after inital checkout when using OpenJDK #28

Open fbueckle opened 3 years ago

fbueckle commented 3 years ago

Error thrown while building: e: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException

JDK:

openjdk 14.0.2 2020-07-14
OpenJDK Runtime Environment (build 14.0.2+12-Ubuntu-120.04)
OpenJDK 64-Bit Server VM (build 14.0.2+12-Ubuntu-120.04, mixed mode, sharing)

Android Studio version: 4.2 RC1 OS: Ubuntu 20.04.2 LTS

No changes were made to the project. Simply cloning and trying to build as instructed by the Code Lab.

loubake commented 3 years ago

For those who may have this issue, I've managed to solve it by upgrading Gradle plugin:

Then I synced the project again and I was able to run the project with no errors.

Hope it helps 😃