How to build and run targeting API 21

Hello,
I’m new to ionic and cordova and I’m trying to emulate and run an app in my Nexus 5 API21 (lollipop).
But It seems that it allways builds targeting API19.

I’ve tried changing config.xml and adding:

<preference name="android-minSdkVersion" value="21" />

with no luck.
I’ve even tried to change the Androd manifest file but it allways gets overriten.
I can’t run my app in a native device running API21.

Thanks in advance.

1 Like

I’m having the same problem. I’ve tried the same things - setting the target sdk in the config.xml as well as changing it in the AndroidManifest.xml. I’ve even tried changing the project.properties file so that it says target=android-21 with no luck.

Different problem :smiley: