Andoidstudio4.2 error

Execution failed for task ':app:compileDebugJavaWithJavac'. 
> javax/xml/bind/JAXBException
Copy the code

Upgrade abnormal

Gradle does not display tasks

JDK path Configuration

Replace Android Studio 4.2 with JDK 1.8, and configure JAVA_HOME to select the JDK path shipped with Android Studio 4.2

Plug-in path modification

The Plugin directory has changed in Android Studio 4.2

Plugin folder has changed in 4.2 version;

From : ~/Library/Application\ Support/AndroidStudio4.2

To: ~ / Library/Application/Support/Google/AndroidStudio4.2 / plugins

Ln -s ~ / Library/Application/Support/Google/AndroidStudio4.2 / plugins ~ / Library/Application/Support/AndroidStudio4.2Copy the code

Configuration changes

Only need to upgrade the kotlin version of the project to the latest 1.5.0 or above, build Gradle4.2.0 or above, master gradle6.7.1 or aboveCopy the code

Gradle does not display task solutions

Enter the Setting, uncheck the box as shown in the picture, and then click Sync Project