Ionic 构建错误:您尚未接受以下 SDK 组件的许可协议:[Android SDK Platform 24] [英] Ionic build error : You have not accepted the license agreements of the following SDK components: [Android SDK Platform 24]
问题描述
我正在尝试运行命令 ionic build android --release
来构建 apk,但我收到此错误
I'm trying to run the command ionic build android --release
to build the apk but i am getting this error
总时间:1.767 秒错误:cmd:命令失败,退出代码为 1错误输出:FAILURE:构建失败,出现异常.
Total time: 1.767 secs Error: cmd: Command failed with exit code 1 Error output: FAILURE: Build failed with an exception.
出了什么问题:配置根项目android"时出现问题.
What went wrong: A problem occurred configuring root project 'android'.
您尚未接受以下 SDK 组件的许可协议:[Android SDK Platform 24].在构建项目之前,您需要接受许可协议并完成使用 Android Studio SDK 安装缺少的组件经理.或者,了解如何转移许可证从一个工作站到另一个工作站的协议,转到http://d.android.com/r/studio-ui/export-licenses.html
You have not accepted the license agreements of the following SDK components: [Android SDK Platform 24]. 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
尝试:使用 --stacktrace 选项运行以获取堆栈跟踪.使用 --info 或 --debug 选项运行以获得更多日志输出.拿起_JAVA_OPTIONS:-Xmx512M
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Picked up _JAVA_OPTIONS: -Xmx512M
推荐答案
Install Platform 24 (Android 7) 解决了这个问题
Install Platform 24 (Android 7) solved this problem
这篇关于Ionic 构建错误:您尚未接受以下 SDK 组件的许可协议:[Android SDK Platform 24]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!