This is the translated issue comment: @ydx123mike
How Not accepted Android SDK license agreements to solve
Some current scene found:
If you are using Android Studio tools such as when you first start, Android Studio will guide the installation platform-tools and other tools, but do not require the user to operate the licenses accept. When installing macaca android, android had if the user does not accept the licenses, this error will occur.
Solution:
1, you can run in Terminate the command corresponding to the active installation tools such platforms, the installation process, android will guide you accept licenses:
$ {ANDROID_HOME} tools / bin / sdkmanager "build-tools; 25.0.2" "platforms; android-26" "extras; android; m2repository"
2, you can use the following command, agreed to all the android licenses (including but not limited macaca android require the use of licenses)
$ {ANDROID_HOME} tools / bin / sdkmanager --licenses
Note: My {ANDROID_HOME} environment variable
/Users/.../Library/Android/sdk/
Will complain more than Java10
Exception in thread "main" java.lang.NoClassDefFoundError: javax / xml / bind / annotation / XmlSchema
at com.android.repository.api.SchemaModule $ SchemaModuleVersion. (SchemaModule.java:156)
at com.android.repository.api.SchemaModule. (SchemaModule.java:75)
at com.android.sdklib.repository.AndroidSdkHandler. (AndroidSdkHandler.java:81)
at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main (SdkManagerCli.java:73)
at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main (SdkManagerCli.java:48)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema
at java.base / jdk.internal.loader.BuiltinClassLoader.loadClass (BuiltinClassLoader.java:602)
at java.base / jdk.internal.loader.ClassLoaders $ AppClassLoader.loadClass (ClassLoaders.java:178)
at java.base / java.lang.ClassLoader.loadClass (ClassLoader.java:522)
... 5 more