arcore-unity-sdk icon indicating copy to clipboard operation
arcore-unity-sdk copied to clipboard

Is it possible to run on Emulator?

Open MetaZhi opened this issue 6 years ago • 14 comments

I have no suitable devices now and tried to run on a Emulator following this link. https://developers.google.com/ar/develop/java/emulator

The java sdk sample works properly but the apk unity built show a blue screen with nothing. Is it possible to run on Emulator or something I did wrong?

MetaZhi avatar Feb 25 '18 02:02 MetaZhi

I experienced the same - only frozen blue screen after I tried to run unity HelloAR in Emulator (AVD-Android Virtual Device) by setting Player Settings -> Device Filter to x86.

filipsladek avatar Feb 25 '18 05:02 filipsladek

Yeah, same experience!

To add to it, the following are the errors while checking out the LOGCAT:

02-26 19:42:35.629 4607-4645/com.sample.argame E/Unity: DllNotFoundException: arcore_unity_api at (wrapper managed-to-native) GoogleARCoreInternal.LifecycleManager/ExternApi:ArCoreUnity_setArPrestoInitialized (GoogleARCoreInternal.LifecycleManager/EarlyUpdateCallback) at GoogleARCoreInternal.LifecycleManager._Initialize () [0x00000] in :0 at GoogleARCoreInternal.LifecycleManager..cctor () [0x00000] in :0 Rethrow as TypeInitializationException: An exception was thrown by the type initializer for GoogleARCoreInternal.LifecycleManager at GoogleARCore.ARCoreSession.Awake () [0x00000] in :0

(Filename:  Line: -1)

02-26 19:42:35.629 4607-4645/com.sample.argame E/Unity: DllNotFoundException: arcore_unity_api at (wrapper managed-to-native) GoogleARCoreInternal.LifecycleManager/ExternApi:ArCoreUnity_setArPrestoInitialized (GoogleARCoreInternal.LifecycleManager/EarlyUpdateCallback) at GoogleARCoreInternal.LifecycleManager._Initialize () [0x00000] in :0 at GoogleARCoreInternal.LifecycleManager..cctor () [0x00000] in :0 Rethrow as TypeInitializationException: An exception was thrown by the type initializer for GoogleARCoreInternal.LifecycleManager at GoogleARCore.ARCoreSession.Awake () [0x00000] in :0

gauravk95 avatar Feb 26 '18 14:02 gauravk95

Emulator is not supported in ARCore 1.0 Unity SDK. We'll be considering adding this feature for future releases.

pablisho avatar Feb 28 '18 23:02 pablisho

Emulator support is very much needed, +1 for this feature request.

halileohalilei avatar Mar 09 '18 11:03 halileohalilei

Same problem, but with device. Exported unity HelloAR project into android studio library(aar), then imported into new native android app. E/Unity: DllNotFoundException: arcore_unity_api Pls help EDIT: I have missing:
compile(name: 'arcore_client', ext: 'aar') compile(name: 'google_ar_required', ext: 'aar') compile(name: 'unityandroidpermissions', ext:'aar') compile(name: 'unitygar', ext:'aar')

mayovtester avatar Mar 19 '18 13:03 mayovtester

Is there any other way to test/debug ARcore application built on Unity than using device?

morevijay04 avatar Mar 19 '18 14:03 morevijay04

+1 for the request; I've got an ZTE Axon 7 which supports Daydream but not ARCore.

I'm going to try run the sample anyway of course... because high-end phones are expensive.

oa2013 avatar Apr 06 '18 20:04 oa2013

+1 for this feature request, didn't support my OnePlus One.

vCillusion avatar Jun 18 '18 10:06 vCillusion

I was enable all the feature for run the ar app in emulator so i got the emulator from android studio and I was run the ARUnity Project from unity 2018 then the app was successfully created and work but the virtual screen was not displayed still the screen display the message "searching for surfaces".

Emulator Google API x86 System Image           API 27 Revision version 6
Emulator version                                27.2.9
Android Studio                                  3.1.3
API Level                                           Oreo 8.1
Hardware Profile                               Pixel API 27(5.0  1080*1920 xxhdpi)
Intel haxm                                          7.1.0
                            Back Camera   Virtual Scene
                            RAM                     2 GB
                            VM Heap              1 GB
                           Internal                  3 GB

RajkumarRepo avatar Jun 27 '18 11:06 RajkumarRepo

+1 for this feature!

menezes25 avatar Jul 31 '18 01:07 menezes25

Same for me. It runs on Emulator but does not use Virtual Scene. Any update on that?

MohsenneChaverdie avatar Jan 31 '19 10:01 MohsenneChaverdie

I tried yesterday. the hello app works and recognizes surfaces (you have to move the virtual scene around ALT + WASD or ALT + MOUSE). however only the surfaces dots are shown. what the camera is recording is not shown. (bunch of blue dots on black screen). To get it to work. i downloaded the arcore apk 1.6. since it will not install in the emulator from google play.

harkiel avatar Jan 31 '19 13:01 harkiel

Same problem here. The Virtual Scene ist running and ARCore does recognize the Scene, without showing us any image of the scene itself, instead a black screen. Because of the ARCore Point Cloud I do know for sure, that the virtual scene is being analyzed. Looks like the matrix effects :) Please give us full support for an unity apk with the emulators virtual scene.

FabianW80 avatar Mar 13 '19 15:03 FabianW80

@pablisho Any updates on this feature ? I am unable to run unity app on emulator .

poojaG911 avatar Aug 05 '20 05:08 poojaG911