Android check with NoClassDefFoundError: javax/xml/bind/JAXBException

I uninstall the Java 11 and install the java 8


Uninstall Java 11 and install the java 8

"i installed jre8 && jdk8"

Then open Project Structure and change SDK Location to the new JDK Location


Update your gradle version in project level gradle

classpath 'com.android.tools.build:gradle:4.x.x'

OR

Change File->Project Structure->SDK Location->JDK path to jdk 1.8 location "Home" folder which should be installed in your system.


If you are using Android Studio 3.6 or later go to Project Structure -> SDK Location and change JDK Location. Android Studio comes with default JRE. It is available in dropdown menu.