问题
Google is warning developers that starting Aug 1, 2019, all apps must be 64-bit.
I use Cordova to build our web app into an Android app and upload the generated 32-bit APK file into google play store
The Cordova crosswalk plugin allow me to build both 32-bit and 64-bit versions using the commands cordova build android --release
and cordova build android --release --xwalk64bit
respectively.
I used the same android version code for both the APKs when build
Questions:
- Earlier I used to upload only the 32-bit version into the play store(Production Track). Right now, Since I have both 32-bit and 64-bit versions of APKs, should I upload both of the APKs into play store to support 32-bit and 64-bit mobiles?
- What would be the process to upload both of 32-bit and 64-bit versions into production release? There is Google doc about multiple APKs but there is no mention about 32-bit and 64-bit versions.
- Will play store take care of delivering 32-bit APK to 32-bit mobile and 64-bit APK to 64-bit mobile?
Note: I can't generate .aab
using Android App Bundle package format since cordova-android is not started supporting yet and there is a Github issue created for that
回答1:
I was facing issue in play store when uploading both 32-bit and 64-bit versions. It seems there an issue with crosswalk plugin while generating version code during the build. The issue is explained here https://stackoverflow.com/a/43570109/2474301
I had to make plugin code change as the answer explained in the StackOverflow link
After I made both 32-bit and 64-bit builds with proper version code, I'm able to upload both 32-bit and 64-bit APKs into google play store. Both the APKs are delivered to the appropriate mobile.
来源:https://stackoverflow.com/questions/56630080/google-warns-developer-to-include-64-bit-version-for-android-app