flutter doctor --android-licenses java.lang.module.FindException: Module java.xml.bind not found

511 views Asked by At

I'm trying to install Flutter but when I run flutter doctor --android-licences I have this error java.lang.module.FindException: Module java.xml.bind not found

I have enable Android SDK Commande-line Tools on android studio.

I'm using a MacBook on MacOS BigSur 11.2.3 and the latest version of Android Studio

How to add this java module please ?

1

There are 1 answers

2
iqbal On
  1. First install android sdk-cli at android studio.
  2. Go to android studio setting sdk-tool section then you find that: for installing android-sdk-cli tool
  3. after than hit this command unset JAVA_OPTS All worked fine for me