Flutter Error in bash after running flutter doctor

45 Views Asked by At

When I have run this command

flutter doctor --android-licenses

I got this error

 Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
        at com.android.repository.api.SchemaModule$SchemaModuleVersion.<init>(SchemaModule.java:156)

Do anyone has an idea about this problem , I have googled it and stackoverflowed it but without any result. Thanks in advance

1

There are 1 best solutions below

0
On

Make sure you have Installed Flutter properly and updated to latest, And run flutter doctor -v check stats If that does not work install flutter again, Check tutorial for help for your Environment