I am trying to upload an application to Google Play which has a version for mobile devices and also for Wear OS. I'm trying to upload it but when I upload the bundle and then want to activate it in version types to add the Wear OS bundle, it complains that the bundle has the same versionCode.
My question is... do I necessarily have to have different versionCodes in each one? Is there no way to upload the same package and have it also available for Wear OS or at least using the same versionCode?
You can add another type of version of your .APK, for this from the Google Play console go to "Settings", enter the "Advanced settings" page. Under the 'Build Types' tab, click Add Build Type which in this case would be 'Wear OS'.
For the wearable version it is defined:
This so that from Google Play, you can only deliver this type of application for watches.
But as for the
versionCode
, this must be unique, I'd suggest checking out Distribution for Wear watches , which states:The version code scheme of a watch APK can be separate from that of a phone APK. Your
versionCode
must also be unique.