加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

cocos creator打包编译报错: You have not accepted the license

发布时间:2020-12-14 17:29:11 所属栏目:百科 来源:网络整理
导读:场景:如题,打包编译时报错 控制台的日志: Error: Compile failed. The log file path [ C:UsersAdministrator.CocosCreatorlogsnative.log ] at ChildProcess.handleChildProcess (C:CocosCreatorresourcesapp.asareditorcorenative-utils.js:1

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

控制台的日志:

Error: Compile failed. The log file path [ C:UsersAdministrator.CocosCreatorlogsnative.log ]
at ChildProcess.handleChildProcess (C:CocosCreatorresourcesapp.asareditorcorenative-utils.js:1:20297)
at ChildProcess.e.on (C:CocosCreatorresourcesapp.asareditorcorenative-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:UsersAdministrator.CocosCreatorlogsnative.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正常。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读