Android Project Configuration

In addition to the following configurations, please also pay attention to the settings in EasyAR Settings.

API Level

EasyAR Sense need to work with Android API Level 21 or higher. Set it in Player Settings

../_images/image_g4_4.png

When Full variant is being used, limited by ONNX, require Android API Level 24 or larger.

Package Name

Set Android Package Name in Player Settings. Package Name should be same with the one when creating License Key

../_images/image_g4_5.png

A window will popup if the License Key is invalid (e.g. when package name is not matched)

../_images/image_g4_8.png

The application will fail to work if you continue to build when this window shows. Please check and fix problems according to messages in the window.

Note

In some special situation when you want to initialize EasyAR manually using scripts, you do not use the license key in the Settings asset. In this case, you can choose Continue and don't warn me again , or disable EasyAR Sense License > Verify When Build option in EasyAR Settings to disable verification in the build process.

Target Architecture

You need to choose IL2CPP to compile and choose ARM64 support in Player Settings if arm64 support is desired, like when using ARCore. It is not required if arm64 architecture is not to support.

../_images/image_g4_6.png

EasyAR Sense do not support Android system in x86 and x86-64 directly. But generally, x86 chips are compatible to run arm applications. So you need to cancel x86 selection, to make sure the project can run on some x86 devices like EPSON BT-350. Set it in Player Settings. It is not required if x86 device is not to support.

../_images/image_g4_18.png

Special Configurations for Video Recording

If you need to use video recording feature, set Graphics API to OpenGLES3 or OpenGLES2, and uncheck Multithreaded Rendering option

../_images/image_g4_7.png

Additionaly, Lib Variants > Android needed to be set to VideoRecording in EasyAR Settings.