How to use libEasyAr.so for android arm64-v8a in Unity

0 votes
asked Oct 10, 2018 by sophour (510 points)

Hello!

I'm struggling to run EasyAR app on my android with 64bit ARMv8-A architecture. In Unity 2017.3 I can build and export app with the following structure:

Project Root
+-- libs
|    +-- EasyAR.jar

|    +-- unity-classes.jar

 +-- app
|   +-- src
|   |   +-- main

|   |   |   +-- jniLibs

|   |   |   |   +-- x86

|   |   |   |   |      +-- libmain.so

|   |   |   |   |      +-- libmono.so

|   |   |   |   |      +-- libunity.so

|   |   |   |   |

|   |   |   |   +-- armeabi-v7a

|   |   |   |   |      +-- libmain.so

|   |   |   |   |      +-- libmono.so

|   |   |   |   |      +-- libunity.so

|   |   |   |   |      +-- libEasyAR.so

|   |   |   |   |      +-- libEasyARUnity.so

 +-- .....

OK, this works for arm64-v8a.
Then, in downloads I have unity-extra folder with EasyAR .so libs for 64bit apart from unitypackage. I create "arm64-v8a" folder in jniLibs, add unity-extra contains and - boom! - "Sorry, ur hardware does not support this app"  in my face.

So, how do I make EasyAR app made with Unity work on 64bit android devices? My project is a part of a bigger project and currently I have to set

 ndk {
            abiFilters "armeabi", "armeabi-v7a", "x86", "mips"
        }
for the entire project; and it needs 64bit support badly...

Oh, help me please! And thanks in advance! 

1 Answer

0 votes
answered Oct 17, 2018 by sophour (510 points)
edited Oct 22, 2018 by sophour
Well, so far I have found that currently Unity libs don't support 64bit whatsoever, but what was the purpose of adding EasyAR 64bit libs in unity dowload pack?..
commented Oct 17, 2018 by rekkuzan (270 points)
edited Oct 17, 2018 by rekkuzan
It does since Unity 2018.2 (and since 2018.1 as experimental)
Moreover, it will be a requirement for android apps to support 64 bits (https://blogs.unity3d.com/2017/12/20/meeting-google-play-requirements-in-the-future)

EDIT: Only available for IL2CPP, you can't with Mono script backend.
commented Oct 22, 2018 by sophour (510 points)
Yet, EasyAR doesn't have support for Unity 2018.2 ;D

Many thanks for info !
Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.
...