cocos creator打包编译报错: You have not accepted the license agreements of the following SDK components

前端之家收集整理的这篇文章主要介绍了cocos creator打包编译报错: You have not accepted the license agreements of the following SDK components前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

场景:如题,打包编译时报错

控制台的日志:

Error: Compile Failed. The log file path [ C:\Users\Administrator\.CocosCreator\logs\native.log ]
at ChildProcess.handleChildProcess (C:\CocosCreator\resources\app.asar\editor\core\native-utils.js:1:20297)
at ChildProcess.e.on (C:\CocosCreator\resources\app.asar\editor\core\native-utils.js:1:7685)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:194:7)
at maybeClose (internal/child_process.js:899:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

错误类似于(C:\Users\Administrator\.CocosCreator\logs\native.log):

A problem occurred configuring project ':app'.
> You have not accepted the license agreements of the following SDK components:
[Android SDK Build-Tools 26.0.2].

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.

解决:安装 android studio 2.3.3 安装,安装完成后下载安装各种平台工具,类似如下:


备注:如果在安装android studio时已经配置了环境变量:

我的做法是,把原来的文件改下名,然后安装android studio时重新指定回指个目录

安装完相关的平台和工具后再打包就OK正常。

原文链接:https://www.f2er.com/cocos2dx/338169.html

猜你在找的Cocos2d-x相关文章