After finishing release build of your Android application with Xamarin – Visual Studio 2019 you may experience the following error when uploading the app to Google Play Console:
Warning! This release is not compliant with Google Play 64-bit requirement. The following APKS or App Bundles are available to 64-bit devices, but they only have 32-bit native code: 1000.
Even when your application contains ARM and ARM64, it might still happen that Google refuses to accept your app and returns just the same error message.
The reason is simple: Google requires that your app with native code bundled as AAB (which is ZIP) contains also libraries for 64-bit platform. It does not matter which architecture.
The error is often caused by building application also for Intel platform because emulators on Intel are faster. There are two options to resolve the issue:
- remove Intel platform from release build
- add also 64-bit version for Intel platform to release build
Google is checking each platform and your .so files should be mirrored for 32-bit and 64-bit. If your bundle is not consistent then Google will refuse your application.
To fix this problem open Visual Studio 2019. Click your project in Solution Explorer. Open Properties (ALT+Enter).
Click Android Options, scroll down to Advanced button. Click Advanced button.
Uncheck all Intel platform (or check them all, based on your preference) and click Close.
Press CTRL+S to save changes. Create a new archive of your application (menu Build – Archive…)
Upload the new AAB.
If you don’t know how to switch to AAB, just go back to Android Options. Search for Android Package Format and select ‘bundle’.