I'm using cocos2d-X v3 and I created a new cocos2d-X project following this tutorial.
But when I run
cocos run -s ~/MyCompany/MyGame -p android
I get this error:
building apk
Android platform not specified, searching a default one...
Can't find right android-platform for project : "/Users/filipeferminiano/MyCompany/MyGame/proj.android". The android-platform should be equal/larger than 10
If
cocos run -s ~/MyCompany/MyGame -p android --ap 20
does not work (Using NDK r10b)
You can use command 'android list' to list all the available target platforms
For me, it is now:
cocos run -s ~/MyCompany/MyGame -p android --ap android-20