I’m trying to create a new testing environment for the app that we’re developing,
So i built a sample AR Scene on unity, (that is already working properly on phone) for Android Emulator and can’t get it working.
I followed the exact instructions here ;
-AVD: Pixel 2 - Android 8.1 API lvl 27
-Camera set to VirtualScene, working properly in camera app
-Installed “Google Play Services for AR 1.16 x86 for emulator” manually
-Installed the app
-When i open the app, it asks permission to use cam, after that crashes or freezes
The closest i get it to working;
I set “Target Architecture” to x86 in player settings, install the app, open the app, it asks permission to use cam, it doesn’t crash or freeze, just a black scene, no Virtual Scene is loaded. It shows camera instructions as seen below:
In the meantime, I get an error in the events dropdown list:
C:\buildbot\src\android\emu-master-dev\external\qemu\android\android-emugl\host\libs\Translator\GLES_V2\GLESv2Imp.cpp:glFramebufferTexture2D:1544 error 0x500
Since it’s a rendering error, just to be sure I tried every possible combination at Extended controls/Advanced.
I’m stuck
Hello, Any AR app not working properly in unity Editor as well as emulator. You have to test in Android device only.
and Architecture" to x86 is deprecated use 64.
I failed to find an exact statement that Unity AR apk’s can’t run on Android Emu. There are cases like mine and still unanswered/unclear for some reason:
This post describes the setup for native Android apps. But the setup for Unity may not be trivial and there are still will be these limitations:
I can recommend using the AR Foundation Editor Remote plugin instead of Simulator. My plugin is extensively tested with ARCore, is constantly updated, and doesn’t have the aforementioned limitations.