cocos creator构建编译android 工程时失败,提示
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/e
根据字义是没有获取到license的问题



解决方案:

在cmd命令窗口下,先cd到 ***\Android\android-sdk\tools\bin下

运行
sdkmanager --update
如果不行就
sdkmanager --licenses
会有
Accept? (y/N): y
接受 y 回车就行了

然后再打包就OK了^.^

友情链接
KaDraw流程图
API参考文档
OK工具箱
云服务器优惠
阿里云优惠券
腾讯云优惠券
华为云优惠券
站点信息
问题反馈
邮箱:ixiaoyang8@qq.com
QQ群:637538335
关注微信