Ensure Xamarin.Android Application Supports 64-Bit Devices

In this article, you will learn how to ensure that the Xamarin Android application supports 64-Bit Devices.

Introduction

 
Google has announced that all the Android apps should support 64-bit architectures beginning Aug 1, 2019. 64-bit CPUs deliver faster, richer experiences for your users. Google Play will continue to support 32-bit apps for now, but as of August 1, 2019, all new apps and updates that include native code must have 64-bit versions as well as 32-bit versions when publishing to Google Play. This ruling applies to apps written in native, Xamarin or apps with links to third-party native libraries.
 
Ensure Xamarin Android Application Supports 64-Bit Devices
 

Supported ABIs

 
An Android application supports four ABIs that can be selected when building a mobile app. You can select which ABIs your application supports in the project Android options properties. If no ABI is specified, “armeabi-v71” is used in a release build and as of Xamarin.Android 9.2, armeabi is no longer supported.
 
Ensure Xamarin Android Application Supports 64-Bit Devices
  1. armeabi-v7a – ARM-based CPUs with hardware floating-point operations and multiple CPU (SMP) devices.
  2. arm64-v8a – CPUs based on the 64-bit ARMv8 architecture.
  3. x86 – CPUs that support the x86 (or IA-32) instruction set.
  4. x86_64 – CPUs that support the 64-bit x86.
You can follow the below steps for selecting 64-bit Android application in the Visual Studio and Visual Studio Mac.
 

Visual Studio in Windows machine

 
Step 1
 
You can open Visual Studio in the Windows machine, right-click on Android project and select "Properties".
 
Step 2
 
Select the "Android Options" tab and click the "Advanced" button. Now, check the architectures that you want to support.
 
Ensure Xamarin Android Application Supports 64-Bit Devices
 

Visual Studio Mac

 
You can open Visual Studio Mac in the Mac machine and open/create a new Android project.
 
Step 1
 
Right-click on the Android project under the Solution Explorer and select "Properties".
 
Step 2
 
Under the Android Options page, check the Packaging properties section and click the "Advanced" button and select the architectures that you want to support.
 
Ensure Xamarin Android Application Supports 64-Bit Devices
 

How to check if your device is 32-bit or 64-bit?

 
You can also check if your phone is 64-bit in Android using the app Antutu Benchmark. While this is a benchmarking app, you can just use it to view your device information. Open Antutu Benchmark and click on “info”.
 
Ensure Xamarin Android Application Supports 64-Bit Devices
 

Summary

 
The Android applications already support 64-bit, no need to do anything. If you haven’t seen that yet, you can change that as per the above steps as soon as possible. I hope this article will help you. Please leave your feedback/query using the comments box, and if you like this article, please share it with your friends.