Android API Target

Hi.

We are using cocos2d-x 3.2 and Android NDK r9d and Android SDK API 19. We want to switch to API 10 to support more devices.

We used

cocos compile -p android --ap 10

problem is, that it says that 10 is lower then 19 and we need 19. Now i found out that there is a project.properties in the proj.android folder with target=android-19 and a project.properties at project\cocos2d\cocos\platform\android\java. I changed both files to 10 and now it works. Do I really need to change both files? Wouldn’t it be simpler if there is only one file where the target is defined?

Thanks, Michael

when you download a latest SDK, then it has backward compatibility to support older devices

Just open your AndroidManifest.xml and change the min sdk version to 10
build, run and test your project with a real device having api level 10

when your sdk is android kitkat then it automatically target the devices upto that api level
just set your min sdk version.

that should work… :smile:
let us know

well actually there’s another IDE from google coming called Android Studio
it shows you the percentage of users having particular android versions

what i could see… 84% of android users still use ICS
so set to 15 it should target max devices
setting the target to 1 is also not a crime. but then those devices would not be able to take the load of latest softwares

it’s like running crysis 3 on celron processors…