Search Unity

Question ARCore apk on Android freezes

Discussion in 'AR' started by pablonm279, Apr 1, 2023.

  1. pablonm279

    pablonm279

    Joined:
    Oct 13, 2022
    Posts:
    1
    Hello

    Im trying to test an ARcore apk on Android.

    I Have:

    Unity 2022.1.19f1
    ARCore XR plugin 4.2.7





    My player settings:

    upload_2023-4-1_12-58-58.png

    upload_2023-4-1_12-59-13.png

    Xr Settings with ArCore enabled.

    My Scene:

    upload_2023-4-1_13-8-6.png

    Just that,
    default Ar game Objects., I have no ARSession Game object for testing but my problem persists with or without it.


    I have not a compatible device for ARcore to test, so im using:

    Android Studio -> Device Manager -> Emulating a Pixel 4 (API 31)
    which worked well (using webcam) on a different build I tested with EasyAR which I discarde due to watermark.
    But the important thing about this is that the problem isn't Android Studio setup, as it worked before with EasyAR.

    My problem: ---------------------------------------

    I Can install the apk on the emulator, it runs, it ask me for camera permissions and then it freezes.
    Not black screen just freezes:

    upload_2023-4-1_13-5-12.png

    Note how the screen color that persist isn't black is the same dark brownish color that unity shows when opening the app and says "Made with Unity" (also when i turn off the device from the emulator it turns really black, the color changes). I even changed the background colour on my scene to a light one so I can discard the problem is in the scene, it seems it never gets to the scene, just freezes loading.

    This happened too with Vuforia on another separated test! and as I said EasyAr works.




    I need help to fix this please!

    thanks
     

    Attached Files:

  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,058
    Did you test it on an actual device?
    Emulators are not ARCore compatible afaik
     
    thomas_key and andyb-unity like this.