用cocos creator 构建发布安卓平台游戏时,在编译环节报错:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':decimalism'.
> Failed to find Platform SDK with path: platforms;android--1
* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.
* Get more help at https://help.gradle.org
后来为了测试,新建了一个HelloWorld项目,构建,编译,结果没问题。
之后再次编译原来的项目的时候也就没问题了。
( 虽然不知道是怎么回事_(:з」∠)_ )
PS:一个细节:报错的那次编译时构建发布的API Level 一栏为空,且点击下拉键无反应。新建HelloWorld项目之后,API Level 一栏变成了 android-16,且点击下拉键可以选择不同的Level了。