Where I define Android Native Platforms?

Hello guys! I was using ionic beta11 and CLI @beta untill now, and when I generate the apk and put on play store, he shows NATIVE PLATFORMS = ‘arm64-v8a, armeabi, armeabi-v7a, x86, x86_64’:

image

But now I updated the CLI and the project to RC2, and everything is working fine on my tests, but when I generate the apk don’t show the NATIVE PLATFORMS anymore… So when I upload my new version on play store the generated version is different and I receive a error:

'This configuration cannot be published for the following reason(s):
Version 20109 is not served to any device configuration: all devices that might receive version 20109 would receive one of versions 201069.'

My OLD VERSION is 2.1.6 = 201069
My NEW VERSION is 2.1.8 = 20109

Someone know what I need to do to set the NATIVE PLATFORMS on ionic build?

Thanks

I can’t upload a new version off my app because of this… If anyone can help…

Didn’t solve it yet… =(

Hey @victorcarvalhosp sorry you’re having issues, judging by those version codes the problem might be related to https://issues.apache.org/jira/browse/CB-8976. Take a look at the following links:

https://cordova.apache.org/docs/en/latest/config_ref/#widget
https://cordova.apache.org/docs/en/latest/guide/platforms/android/index.html#setting-the-version-code

Since your old version code is 201069, you’ll need to choose a higher number for your next versions (20109 is lower than 201069). You can do this by setting the android-versionCode attribute on the widget element in your config.xml file. I could be wrong, but I believe if you just have one apk for your app then this number isn’t all that important, it’s only for when you are publishing multiple apks: https://developer.android.com/google/play/publishing/multiple-apks.html#VersionCodes.

1 Like