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了^.^