codelab-android-navigation icon indicating copy to clipboard operation
codelab-android-navigation copied to clipboard

Unable to load class 'javax.xml.bind.JAXBException'. This is an unexpected error. Please file a bug containing the idea.log file.

Open jeonghyun-genesislab opened this issue 3 years ago • 2 comments

Good morning.

If you build after receiving the clone for testing,

An error occurs.

Unable to load class 'javax.xml.bind.JAXBException'. This is an unexpected error. Please file a bug containing the idea.log file.

jeonghyun-genesislab avatar Jun 23 '21 07:06 jeonghyun-genesislab

Good morning.

If you build after receiving the clone for testing,

An error occurs.

Unable to load class 'javax.xml.bind.JAXBException'. This is an unexpected error. Please file a bug containing the idea.log file.

Yes,I got the same error too.

ShengjieGeng avatar Jul 02 '21 07:07 ShengjieGeng

Good morning.

If you build after receiving the clone for testing,

An error occurs.

Unable to load class 'javax.xml.bind.JAXBException'. This is an unexpected error. Please file a bug containing the idea.log file.

I got the same error,and I found the solution in stackvoerflow:https://stackoverflow.com/questions/51960049/android-build-error-unable-to-load-javax-xml-bind-jaxbexception.

Just update the version of build tool gradle to 4.2.2:

dependencies {
        classpath 'com.android.tools.build:gradle:4.2.2'
        classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$navigationVersion"
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }

lindroy avatar Jul 28 '21 10:07 lindroy