close

[Solved] Unable to load class ‘javax.xml.bind.JAXBException’ This is an unexpected error Please file a bug containing the idea.log file

Hello Guys, How are you all? Hope You all Are Fine. Today when I run my app I am facing following error Unable to load class ‘javax.xml.bind.JAXBException’ This is an unexpected error Please file a bug containing the idea.log file in Java. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How Unable to load class ‘javax.xml.bind.JAXBException’ This is an unexpected error Please file a bug containing the idea.log file Error Occurs ?

Today when I run my app I am facing following error.

Execution failed for task ':app:compileDebugJavaWithJavac'. javax/xml/bind/JAXBException
Unable to load class 'javax.xml.bind.JAXBException' This is an unexpected error Please file a bug containing the idea.log file

How To Solve Unable to load class ‘javax.xml.bind.JAXBException’ This is an unexpected error Please file a bug containing the idea.log file Error ?

  1. How To Solve Unable to load class 'javax.xml.bind.JAXBException' This is an unexpected error Please file a bug containing the idea.log file Error?

    To Solve Unable to load class 'javax.xml.bind.JAXBException' This is an unexpected error Please file a bug containing the idea.log file Error In build.gradle, Just change dependency from classpath 'com.android.tools.build:gradle:3.6.3' to classpath 'com.android.tools.build:gradle:4.0.0' In gradle-wrapper.properties, I changed the distributionUrl.

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

    To Solve Unable to load class 'javax.xml.bind.JAXBException' This is an unexpected error Please file a bug containing the idea.log file Error In build.gradle, Just change dependency from classpath 'com.android.tools.build:gradle:3.6.3' to classpath 'com.android.tools.build:gradle:4.0.0' In gradle-wrapper.properties, I changed the distributionUrl.

Solution 1

In build.gradle, Just change dependency from

classpath 'com.android.tools.build:gradle:3.6.3'

to

classpath 'com.android.tools.build:gradle:4.0.0'

In gradle-wrapper.properties, I changed the distributionUrl from

distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip

to

distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also, Read

Please Rate Our Solution to Motivate Us For Give Our Best

Leave a Comment