Updating Unity Android projects for compatibility with ARM64 architecture

Google invited developers to update applications for compatibility with the ARM64 architecture by August 1, 2019, if they do not meet these requirements


Find and enable ARM64 support in Unity


To enable it, open the File - Build Settings, then Player Settings for the Android platform. In the inspector that opens, we see the Configuration section on the Other settings tab.

image

Note! The Scripting Backend option must be set to IL2CPP . And after enabling this option, you will need to have Android NDK installed if it is not installed!

Download the latest stable version, prescribe the path to it - and “oops”, the newest version of NDK for Unity for some reason did not fit!

image

Do not waste time, as I did, to download the latest stable version with number 20. The size of this package is about 2Gb. Start downloading the r16b (64-bit) version .

Download this particular, required version of NDK Android r16b (64-bit) for Windows
can be here .

After, of course, unpack it, put it in a reliable accessible place, and when assembling the build, indicate the path to this place. Or, immediately register this path in the main Unity settings, there is such a field for prescribing the path to the NDK, and the menu is called External Components (External Tools).

As a result, the ARM64 flag should become active in the Target Architectures option. Prior to these manipulations, the flag was inactive:

image

If the project uses Vuforia, it also needs to be updated.


Projects using Vuforia - earlier versions of 64x did not support. However, starting with version 8.1, Vuforia supports 64-bit.

Best updated directly from Unity. To do this, go to the Window menu - Vuforia Configuration (Ctrl-Shift-V) - and in the inspector we look at the very top - if an update is available and the version of Vuforia is not the latest, then a download link will be available - it allows downloading the executable update file .

The second way to check for updates is to open the Help menu - Vuforia Engine - Check for Updates. And if there is an update, it will be offered for download.

After downloading, unzip. Inside there should be an executable file with approximately the same name UnitySetup-Vuforia-AR-Support-for-Editor-2018.4-2019.1.exe. The version of your editor may differ.

Next, pay attention to the correct steps when running this update:

  1. Accept License Agreement
  2. If the Unity editor is open, it will be offered to close it
  3. Select the path to the Unity editor and click Update

Moreover, if you have Unity Hub installed, then the path will probably look something like this: "C: \ Program Files \ Unity \ Hub \ Editor \ 2018.4.3f1 \" .

Be careful with the paths and everything will work out. When I indicated the path to the folder where Unity.exe directly lies , I received an error: "I can not find Unity.exe ." The correct path is indicated only to the name of the version of the editor!

Another rake may be here. Perhaps you yourself will find a link to the Vuforia SDK Engine 8.3 on the Vuforia website:developer.vuforia.com/downloads . But, zip archives with SDK sources are downloaded here, and you won’t be able to automatically install it in Unity. Do not use this archive! Download the update file only from the link in the editor.

All recommendations apply to updating Vuforia if you have Windows installed. If you have a Mac, then there are few differences, except in writing the paths to the folder with the Unity editor. And of course, choose the version of packages for your platform correctly.

That's all, thanks to the audience, I hope the article will help someone.

Details about the requirements of Google .

See IL2CPP for help in section 6 .

Android NDK versions .

Vuforia on ARM64 support and upgrade to version 8.3.

Also popular now: