google-ar / arcore-unity-sdk

ARCore SDK for Unity
https://developers.google.com/ar
Other
1.4k stars 400 forks source link

Is it possible to run on Emulator? #108

Open MetaZhi opened 6 years ago

MetaZhi commented 6 years ago

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?

filipsladek commented 6 years ago

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.

gauravk95 commented 6 years ago

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

pablisho commented 6 years ago

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

halileohalilei commented 6 years ago

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

mayovtester commented 6 years ago

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')

morevijay04 commented 6 years ago

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

oa2013 commented 6 years ago

+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.

vCillusion commented 6 years ago

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

RajkumarRepo commented 6 years ago

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
menezes25 commented 6 years ago

+1 for this feature!

MohsenneChaverdie commented 5 years ago

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

harkiel commented 5 years ago

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.

FabianW80 commented 5 years ago

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.

poojaG911 commented 4 years ago

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