用 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 : “D:\project\yuanfang\proj.androi
d”. The android-platform should be equal/larger than 18
加上–ap 18
后显示
Running command: compile
Building mode: debug
18 is not a valid android target platform.
网上搜索的在sdk中添加文件夹什么的也都做了,就是不行。。。求救
原来是我环境变量android_sdk_root配置错了