Cannot set Min SDK to 2.2

Hi,
I want to set the minimum SDK version to 2.2. I have selected it from the dropdown in the Player settings. However, when I publish the apk to the Google Play, it says “1.6 and up” in the “Requires Android” field. Should I modify the manifest manually to fix this? Or is there something else that I’m missing? Thanks.

Possibly some plugin is overriding their value when building the apk

That’s weird, is it possible to override that value without changing the AndroidManifest? Because, last time I checked there was no entry like minSdk or something similar. But, I will check it again to be sure.

I have checked the AndroidManifest.xml and there is nothing that changes the Minimum Api Level. I have some plug-ins from Prime31, how would I know which plug-in changes it, and how can I prevent it?

Did you checked the AndroidManifest on your final apk? Did you decompiled your final apk with apktool to make the manifest human-readable?

If so, make sure you downloaded the latest version of apktool as there was a previous version that had a bug where minSdkVersion was stripped from the Android manifest.

No, I didn’t use apktool. Most probably, something changes the manifest in the postprocess phase. But I don’t know how to control it.

I have manually insert to the manifest file, however Unity deletes that line after build !!! I’m using Unity 4.2.2. Nobody see has such a problem?

Try to export a Eclipse project. That way you can see the “final” AndroidManifest file in human readable form from what Unity is producing. I’d make sure that in your player settings that your APK setting is set properly (if you haven’t already).

I have checked the final apk with the apktool and there is no tag in there. I have set Minimum Api Level to 2.3.3 (Api Level 10), but still Google Play page says it requires 1.6 and up, because there is no minumum sdk in the final manifest file :frowning:

@Ferazel , now I have exported to eclipse project and I see that the tag exist in the manifest file. But, why the manifest of the final apk does not have it?

I’m not sure why that would be happening. The only thing I can think of is what other’s have mentioned which is some sort of plugin. Are you using a blank new project to see it it responds to the MinSDK value?

The problem turned out to be the Google Play’s alpha publishing. Alpha releases show always "1.6 and up as the required sdk whatever you have in the apk. Thanks all.

Hey hi, i have imported facebook SDK from developer site, i had problem with merging manifest file, error was minSDK version support different. i have made changes in drop down menu in player setting, minSDK problem is solved, and now comes the targetSdkVersion problem, the pluggin supports Version 23 and unity supports Version 22. How will i get ride with this?