Search Unity

AR apk not working properly on Android Emulator

Discussion in 'AR' started by ishimurax, May 13, 2020.

Thread Status:
Not open for further replies.
  1. ishimurax

    ishimurax

    Joined:
    May 7, 2020
    Posts:
    6
    Hi,

    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

    Unity version: 2019.2.21f1

    Player settings of the project:
    https://imgur.com/a/4dgjeVh



    Packages:
    ARFoundation 3.0.0
    ARCore 3.0.0


    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:

    https://imgur.com/a/JvxTNN4



    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

    Thank you in advance.
     
  2. jalajshah

    jalajshah

    Joined:
    Mar 5, 2018
    Posts:
    62
    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.
     
  3. ishimurax

    ishimurax

    Joined:
    May 7, 2020
    Posts:
    6
  4. alishabanaha3

    alishabanaha3

    Joined:
    Oct 25, 2020
    Posts:
    1
    android official documentation tells to use x86 not 64 !!!!!
     
  5. KyryloKuzyk

    KyryloKuzyk

    Joined:
    Nov 4, 2013
    Posts:
    1,144
    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.
     
Thread Status:
Not open for further replies.