Failed to install android-sdk: “java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema”
I had a similar problem this morning (trying to build for Android using Unity3D). I ended up uninstalling JDK9 and installing Java SE Development Kit 8u144. Hope this helps. brew cask uninstall java # uninstall java9 brew tap homebrew/cask-versions brew cask install java8 # install java8 touch ~/.android/repositories.cfg # without this file, error will occur … Read more