• Register
Welcome to Kodlogs, programming questions and answer website.
0 votes
29 views

Problem :

I am getting bellow error while installing android sdk

exception in thread "main" java.lang.noclassdeffounderror: javax/xml/bind/annotation/xmlschema

by (300 points)  
edited by

1 Answer

0 votes

Possible Cause:

It seems the problem is caused by Java 9 version.

Solution:

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:

  1. brew cask uninstall java 
  2. brew tap caskroom/versions
  3. brew cask install java8 
  4. touch ~/.android/repositories.cfg # without this file, error will occur on next step
  5. brew cask install android-sdk

 Conclusion:

Please uninstall Java 9 to resolve the issue.

Further Readings:

https://github.com/kivy/buildozer/issues/862

by (33.3k points)  
edited by
...