Android - minSdkVersion and targetSdkVersion?

  1. Where do we set these values?

I assumed it would be in manifests/AndroidManifest, but they aren’t there… did a search and found them set in multiple locations, and different values. What is the file we should change?

  1. What should these values be?

Looks like minSdkVersion is 10 (in one place it’s 9), but building it I get the warning that the minimum possible is 14, so it builds with that…
But then looking here:
http://cocos2d-x.org/docs/installation/A/index.html
The minimum API level required is 19?

What about targetSdkVersion? I’d like to use the latest, which is 26, but it looks like in the app it’s set to 22. Is there any reason a higher version won’t work? On this post:


it says if you use target sdk 23+ you need to handle on fly permission request in app - what does this mean?

Thanks!

I found a pretty thorough discussion here:

From that, I think this would be the best option as of now:

PROP_COMPILE_SDK_VERSION=26
PROP_MIN_SDK_VERSION=15
PROP_TARGET_SDK_VERSION=26
PROP_APP_PLATFORM=15