Chapter 13 final project does not build

I am not able to build the final project for Chapter 13 and cannot run the AddViewModelTest

> Task :app:kaptDebugKotlin FAILED
e: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
	at java.base/java.lang.Class.getDeclaredConstructors0(Native Method)
	at java.base/java.lang.Class.privateGetDeclaredConstructors(Class.java:3137)
	at java.base/java.lang.Class.getConstructor0(Class.java:3342)
	at java.base/java.lang.Class.newInstance(Class.java:556)```

@yuncheng13 could you please help with this question

I’m also unable to follow the steps in the book with the starter project. The first unit test of the chapter cantSaveMovieWithoutTitle (which the books says will run successfully) doesn’t; it gives this error:

Task :app:testDebugUnitTest

Could not initialize plugin: interface org.mockito.plugins.MockMaker
java.lang.IllegalStateException: Could not initialize plugin: interface org.mockito.plugins.MockMaker
…
Caused by: org.mockito.exceptions.base.MockitoInitializationException:
Could not initialize inline Byte Buddy mock maker. (This mock maker is not supported on Android.)

Java : 11
JVM vendor name : JetBrains s.r.o.
JVM vendor version : 11.0.10+0-b96-7281165
JVM name : OpenJDK 64-Bit Server VM
JVM version : 11.0.10+0-b96-7281165
JVM info : mixed mode
OS name : Mac OS X
OS version : 11.6.8

No luck finding a solution online.