Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Usa el Android Emulator para probar situaciones de RA sin un dispositivo físico. Android Emulator te permite ejecutar apps de ARCore en un entorno virtual con un dispositivo emulado que puedes controlar.
Crea un dispositivo virtual de Android (AVD) nuevo
En Android Studio, haz clic en Tools > Device Manager para abrir el Device Manager.
Haz clic en Create Device en la parte superior del panel Administrador de dispositivos.
Selecciona o crea el perfil de hardware de teléfono que desees y, luego, selecciona Next.
Selecciona una imagen del sistema x86 o x86_64 que ejecute el nivel de API 27 o posterior y selecciona Next.
Si bien los dispositivos ARCore físicos son compatibles con el nivel de API 24 o versiones posteriores, la compatibilidad con Android Emulator requiere el nivel de API 27 o versiones posteriores.
Solo se admiten las arquitecturas del emulador de Android basadas en x86. Actualmente, no se admiten otras arquitecturas, como arm64-v8a y armeabi-v7.
Verifica que tu dispositivo virtual esté configurado correctamente:
Haz clic en Show Advanced Settings.
Asegúrate de que Camera Back esté configurado como VirtualScene.
Haz clic en Finish para crear tu AVD.
Ejecuta tu app
Probar una app de ARCore en un dispositivo virtual compatible con RA en el emulador Para ello, puedes seguir las instrucciones de Android Studio para ejecutar una app en Android Emulator.
Actualiza los Servicios de Google Play para RA
Es probable que la versión de los Servicios de Google Play para RA en el emulador esté desactualizada. Sigue estas instrucciones para actualizarlo:
Descarga la versión más reciente de Google_Play_Services_for_AR_1.50.0_x86_for_emulator.apk desde la página de versiones de GitHub.
Instala el APK descargado en cada AVD que quieras usar:
Inicia el AVD deseado y, luego, arrastra el APK descargado desde la carpeta del sistema (es decir, Downloads) en el emulador en ejecución o instálala con adb mientras se ejecuta el dispositivo virtual:
Repite estos pasos para los AVD adicionales que quieras usar.
Controla la escena virtual
Cuando tu app se conecte a ARCore, verás una capa superpuesta que describe cómo controlar la cámara y una barra de estado debajo de la ventana del emulador.
Cómo mover la cámara virtual
Mantén presionado Shift para acceder a los controles de movimiento de la cámara.
Usa los siguientes controles para mover la cámara:
Acción
Qué hacer
Mover hacia la izquierda o la derecha
Mantén presionada la tecla Mayúsculas y presiona A o D.
Mover hacia arriba o hacia abajo
Mantén presionada la tecla Mayúsculas y presiona Q o E.
Avanzar o retroceder
Mantén presionada la tecla Mayúsculas y presiona W o S.
Cómo cambiar la orientación del dispositivo
Mantén presionada la tecla Mayúsculas y mueve el mouse.
Suelta Shift para volver al modo interactivo en el emulador.
Usa la pestaña Virtual Sensors en Controles extendidos para posicionar el dispositivo con mayor precisión.
Cómo agregar imágenes aumentadas a la escena
Carga imágenes en el entorno simulado del emulador para probar Augmented Images.
Usa la pestaña Camera en Extended controls para agregar o modificar Scene images.
Hay dos ubicaciones de imágenes, una en la pared y otra en la mesa.
Para ver las ubicaciones de estas imágenes en la escena, inicia el emulador y, luego, mueve la cámara al área del comedor a través de la puerta que se encuentra detrás de la posición inicial de la cámara.
Sugerencias para solucionar problemas
Si se inicia tu app de ARCore y ves el mensaje "Este dispositivo no admite RA", verifica la revisión de la imagen del sistema. Asegúrate de usar el nivel de API 27, revisión 4 o posterior.
Si tu app de ARCore no puede abrir la cámara cuando se inicia, asegúrate de que Camera Back esté configurado como VirtualScene, como se describe en los pasos de configuración anteriores.
Si tu app de ARCore no se abre y muestra el mensaje de error "No se pudo crear la sesión de RA", revisa el registro de la app. Si encuentras un java.lang.UnsatisfiedLinkError con un mensaje que contiene /lib/arm/libarcore_c.so" is for EM_ARM (40)
instead of EM_386 (3), es posible que hayas instalado la versión incorrecta del APK de Servicios de Google Play para RA. Crea un dispositivo virtual nuevo y, luego, instala la versión x86.
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Falta la información que necesito","missingTheInformationINeed","thumb-down"],["Muy complicado o demasiados pasos","tooComplicatedTooManySteps","thumb-down"],["Desactualizado","outOfDate","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Problema con las muestras o los códigos","samplesCodeIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-07-26 (UTC)"],[[["\u003cp\u003eUse the Android Emulator to test AR scenarios without a physical device by running ARCore apps in a virtual environment.\u003c/p\u003e\n"],["\u003cp\u003eSet up your development environment by installing Android Studio 3.1 or later and Android Emulator 27.2.9 or later, then create a virtual device with AR support by configuring it with an x86 or x86_64 system image running API Level 27 or later and setting the Camera Back to VirtualScene.\u003c/p\u003e\n"],["\u003cp\u003eUpdate Google Play Services for AR on the emulator by downloading and installing the latest APK from the GitHub releases page.\u003c/p\u003e\n"],["\u003cp\u003eControl the virtual scene by pressing and holding Shift for camera movements and using the Virtual Sensors tab in Extended controls for precise positioning, while adding Augmented Images using the Camera tab in Extended controls to load images into the simulated environment.\u003c/p\u003e\n"]]],["To test AR apps without a physical device, use the Android Emulator. First, install Android Studio and the required SDK tools (Android Emulator 27.2.9+ and Google APIs Intel x86 Atom System Image API Level 27+). Create a new Android Virtual Device (AVD) with an x86 system image, ensuring \"Camera Back\" is set to \"VirtualScene.\" Update Google Play Services for AR by installing the correct APK. Control the virtual camera using Shift and WASDQE keys. Add scene images via Extended Controls.\n"],null,["# Run AR Apps in Android Emulator\n\nUse the [Android Emulator](https://developer.android.com/studio/run/emulator.html)\nto test AR scenarios without a physical device. The Android Emulator lets you\nrun ARCore apps in a virtual environment with an emulated device that you\ncontrol.\n\nSet up your development environment\n-----------------------------------\n\nSoftware requirements:\n\n- [Android Studio](https://developer.android.com/studio/) **3.1** or later.\n\n- [Android Emulator](https://developer.android.com/studio/run/emulator.html#Requirements)\n **27.2.9** or later.\n\nGet Android Studio and SDK tools for ARCore\n-------------------------------------------\n\n1. Install [Android Studio](https://developer.android.com/studio/) 3.1 or later.\n\n2. In Android Studio, go to **Preferences \\\u003e Appearance and Behavior \\\u003e System Settings \\\u003e Android SDK**.\n\n3. Select the **SDK Platforms** tab and check **Show Package Details**.\n\n Under the appropriate Android version select: \n\n **Google APIs Intel x86 Atom System Image** API Level 27 or later.\n4. Select the **SDK Tools** tab and add **Android Emulator** 27.2.9 or later.\n\n5. Click **OK** to install the selected packages and tools.\n\n6. Click **OK** again to confirm changes.\n\n7. **Accept** the license agreement for the Component Installer.\n\n8. Click **Finish**.\n\nCreate a virtual device with AR support\n---------------------------------------\n\nFor more information, see the Android Studio instructions to [Create a\nVirtual Device](https://developer.android.com/studio/run/managing-avds.html#createavd).\n\n### Create a new Android Virtual Device (AVD)\n\n1. In Android Studio open the *Device Manager* by clicking **Tools \\\u003e Device Manager**.\n\n2. Click **Create Device** , at the top of the *Device Manager* panel.\n\n3. Select or create your desired *Phone* hardware profile and select **Next**.\n\n4. Select an `x86` or `x86_64` system image running **API Level 27 or later**\n and select **Next** . \n\n - While physical ARCore devices are supported on API Level 24 or later,\n Android Emulator support requires API Level 27 or later.\n\n - Only x86-based Android Emulator architectures are supported. Other\n architectures such as `arm64-v8a`, `armeabi-v7`, are not currently\n supported.\n\n5. Verify that your virtual device is configured correctly:\n\n - Click **Show Advanced Settings**.\n\n - Make sure that **Camera Back** is set to **VirtualScene**.\n\n6. Click **Finish** to create your AVD.\n\nRun your app\n------------\n\nTest an ARCore app on an AR-supported virtual device in the emulator. To do\nthis, you can follow the Android Studio instructions to\n[Run an app in the Android Emulator](https://developer.android.com/studio/run/emulator.html#runningapp).\n| **Note:** To run apps with NDK components in the Android Emulator, your app must be built with [**x86 ABIs**](https://developer.android.com/ndk/guides/abis.html). For an example, see the [**ARCore HelloAR C sample app**](https://github.com/google-ar/arcore-android-sdk/tree/master/samples/hello_ar_c).\n\n### Update Google Play Services for AR\n\nThe version of Google Play Services for AR on the emulator is likely out of\ndate. Follow these instructions to update it:\n\n1. Download the latest **Google_Play_Services_for_AR_1.50.0_x86_for_emulator.apk** from the GitHub\n [releases](https://github.com/google-ar/arcore-android-sdk/releases) page.\n\n2. Install the downloaded APK into each AVD you'd like to use:\n\n Start the desired AVD, then drag the downloaded APK from your system folder\n (i.e., **Downloads** ) onto the running\n emulator, or install it using `adb` while the virtual device is running: \n\n ```\n adb install -r Google_Play_Services_for_AR_1.50.0_x86_for_emulator.apk\n ```\n\n \u003cbr /\u003e\n\nRepeat these steps process for any additional AVDs you'd like to use.\n\n### Control the virtual scene\n\nWhen your app connects to ARCore, you'll see an overlay describing how to control\nthe camera and a status bar below the emulator window.\n\n#### Move the virtual camera\n\nPress and hold **Shift** to access camera movement controls.\nUse the following controls to move the camera:\n\n\u003cbr /\u003e\n\n| Action | What to do |\n|---------------------------|---------------------------------------|\n| Move left or right | Hold **Shift** + press **A** or **D** |\n| Move down or up | Hold **Shift** + press **Q** or **E** |\n| Move forward or back | Hold **Shift** + press **W** or **S** |\n| Change device orientation | Hold **Shift** + move mouse |\n\n\u003cbr /\u003e\n\nRelease **Shift** to return to interactive mode in the emulator.\n\nUse the **Virtual Sensors** tab in [Extended controls](https://developer.android.com/studio/run/emulator.html#extended)\nfor more precise device positioning.\n\n### Add Augmented Images to the scene\n\nLoad images into the emulator's simulated environment to test [Augmented Images](/ar/develop/augmented-images).\n\nUse the **Camera** tab in **Extended controls** to add or modify **Scene images**.\nThere are two image locations, one on the wall and one on the table.\n\nTo view these image locations in the scene, launch your emulator, then move the\ncamera to the dining room area through the door behind the camera's starting\nposition.\n\n### Troubleshooting tips\n\n- If your ARCore app launches and you see a \"This device does not support AR\"\n message, check the revision on your system image. Make sure you are using\n **API Level 27 Revision 4 or later**.\n\n- If your ARCore app fails to open the camera when it launches, make sure that\n **Camera Back** is set to **VirtualScene** ,\n as described in the [configuration steps above](#configure_the_virtual_device).\n\n- If your ARCore app fails to open with the error message \"Failed to create AR\n session\" check the app log. If you find a `java.lang.UnsatisfiedLinkError`\n with a message that contains `/lib/arm/libarcore_c.so\" is for EM_ARM (40)\n instead of EM_386 (3)`, you may have installed the wrong version of the\n **Google Play Services for AR** apk. Create a new virtual device and install\n the x86 version."]]