cocos2d-X doesn't find android platform

2019-03-13 23:58发布

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

7条回答
Summer. ? 凉城
2楼-- · 2019-03-14 00:31

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

查看更多
登录 后发表回答