新建的cocos2dx c++的hello world工程,想进行安卓的编译,使用命令:cocos compile -p android后出现以下错误:
Running command: compile
Building mode: debug
Android platform not specified, searching a default one…
Can’t find right android-platform for project : “/Users/Honghao/Documents/CocosProjects/CocosProject1/proj.android”. The android-platform should be equal/larger than 20
然后在网上查,说是要在命令后面加–ap 20,可是使用了命令:cocos compile -p android --ap 20 后出现:
Running command: compile
Building mode: debug
20 is not a valid android target platform.
求各位大神小神帮忙哇!
(PS: 以前用cocos2dx 3.3版本的时候可以编译成功的)