android studio license agreement,[已解决]Not accepted Android SDK license agreements

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值