So I want to compile my cocos2d-x project for Android Studio using cmd with:
cocos compile -p android --android-studio --ap android-22
I found the description about --ap
option in the wiki : Specify the API-Level of android sdk. Console will auto select it if not specified.
.
My question is that:
1/ Is this API compiledSDKVersion
or minSDKVersion
or targetSDKVersion
? And how do I set those SDKVersion in above command?
2/If I want to change those SDKVersion
, could I just edit build.Gradle(Module:MyApp) and build.Gradle(Module:libcocos2dx) then Sync Gradle or I have to recompile using the cmd with above command?
Your attention and help is very much appreciated.