I am getting bellow error while installing android sdk
exception in thread "main" java.lang.noclassdeffounderror: javax/xml/bind/annotation/xmlschema
It seems the problem is caused by Java 9 version.
I had a similar problem trying to build for Android . I tried uninstalling JDK9 and installing Java SE Development Kit 8u144. And it worked for me.
Please find below steps to remove error:
Please uninstall Java 9 to resolve the issue.