You have not accepted the license agreements of the following SDK components
Posted 风起时的悟
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了You have not accepted the license agreements of the following SDK components相关的知识,希望对你有一定的参考价值。
问题出现在配完环境,生成apk的时候
>ionic build android
问题描述:
BUILD FAILED Total time: 9 mins 18.732 secs FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring root project ‘android‘. > You have not accepted the license agreements of the following SDK components: [Android SDK Platform 25]. Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager. Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Error: cmd: Command failed with exit code 1 Error output: FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring root project ‘android‘. > You have not accepted the license agreements of the following SDK components: [Android SDK Platform 25]. Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager. Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
分析:根据字义是没有获取到license的问题
解决方案:
在cmd命令窗口下,先cd到 ***\Android\android-sdk\tools\bin下
运行
sdkmanager --update
如果不行就
sdkmanager --licenses
会有
Accept? (y/N): y
接受 y 回车就行了
然后再打包就OK了^.^
以上是关于You have not accepted the license agreements of the following SDK components的主要内容,如果未能解决你的问题,请参考以下文章
The server's host key is not cached in the registry. You have no guarantee that the server……(示例
金仓kingbase连接报错The authentication type 10 is not supported. Check that you have configured the sys_hb
已解决 You have 18 unapplied migration(s). Your project may not work properly until you apply the migra
Zabbix You do not have the SUPER privilege and binary logging is enabled
You do not have the SUPER privilege and binary logging is enabled解决方法
You do not have the SUPER privilege and binary logging is enabled解决方法