Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

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

Open
jeonghyun-genesislab opened this issue Jun 23, 2021 · 2 comments

Comments

@jeonghyun-genesislab
Copy link

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.

@ShengjieGeng
Copy link

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.

@lindroy
Copy link

lindroy commented Jul 28, 2021

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
    }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants