简体   繁体   中英

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

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. 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM