cocos2dx 3.6版本怎么用eclipse编译

cocos2dx 3.6版本怎么用eclipse编译??我直接在工程里用 cocos compile -p android 黑框就可以 ,另外问一下 cocos compile -p android --ap 20 这个20怎么老是不行啊,打上这一段就不能编译了。

在eclipse中没有报错,但是编译完了apk才81kb,不知道怎么回事啊?从哪里看问题?

macdeiMac-2:XXXX mac$ cocos compile -p android
Running command: compile
Building mode: debug
Android platform not specified, searching a default one…
running: ‘/Users/mac/Documents/adt/sdk/tools/android update project -t android-19 -p /Users/mac/Documents/work/XXXX/proj.android’

Updated project.properties
Updated local.properties
Updated file /Users/mac/Documents/work/XXXX/proj.android/proguard-project.txt
It seems that there are sub-projects. If you want to update them
please use the --subprojects parameter.

GoogleInc.:GoogleAPIs:19 is not a valid android target platform.

求高人指点~~~~~~

貌似应该是cocos compile -p android --ap-20

你可以在命令行下运行 android list targets。看一下可用的android target。