Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get the Google Pixel 3 emulator in Android Studio?

I'm currently running the latest version of Android Studio, v3.2.1. The virtual devices available only go up to the Pixel 2 (and the XL version). These do not suffice since I mainly need to test on the new Google Pixel 3 XL, due to its notch.

enter image description here

Is it possible to get the new Pixel 3 (and XL version) loaded into Android Studio's emulators for testing?

like image 493
Fizzix Avatar asked Nov 05 '18 05:11

Fizzix


People also ask

Why is the emulator not showing in Android Studio?

If the emulator fails to launch due to the error vulkan-1. dll cannot be found , you probably need to update the emulator. To update the emulator in Android Studio, go to Tools > SDK Manager and install the latest stable version of Android platform.

Can you emulate android with Android Studio?

The Android Emulator enables you to test your app on many different devices, virtually. The emulator comes with Android Studio by default, so you shouldn't have to manually install it. The basic workflow with the emulator goes as follows: Verify that you have the system requirements.

Where is the emulator in Android Studio?

The Android emulator is installed while installing the Android Studio. However some components of emulator may or may not be installed while installing Android Studio. To install the emulator component, select the Android Emulator component in the SDK Tools tab of the SDK Manager.

Does Android Studio include emulator?

The Android Virtual Device (AVD) is an emulator configuration that lets you model an actual device by defining hardware and software options to be emulated by the Android Emulator. It comes as an optional download when you install Android Studio.


3 Answers

To add a notch in the emulator, choose any device with Android Pie system image (9.0). Build it, then go to Settings > System > expand 'Advanced' > Developer options > 'Drawing' section > 'Simulate a display with a cutout' on the emulator.

You can use it until they add the official skin

enter image description here

*NOTE: The 'Developer' option is not shown by default on Android phones. Please see the Android Documentation to learn out how to enable it.

like image 76
Mohamed Saber Avatar answered Oct 17 '22 22:10

Mohamed Saber


Official AVDs for Pixel 3 and Pixel 3 XL are available since Android Studio 3.4

like image 23
tobi512 Avatar answered Oct 17 '22 22:10

tobi512


To save other's some searching, here's the configuration necessary for a custom Pixel 3 XL hardware profile:

Device Type: Phone/Tablet
Screen Size: 6.3 inch
Resolution: 1440x2960 px
RAM: 8192 MB
Has Hardware Buttons: false
Has Hardware Keyboard: false
Navigation Style: none
Supported Device States: Portrait=true, Landscape=true
Cameras: Back-facing=true, Front-facing=true
Sensors: Accelerometer=true, Gyroscope=true, GPS=true, Proximity=true
Default Skin: No Skin

enter image description here

Then you can enable the notch developer option mentioned by Mohamed Saber and you should have a pretty accurate representation of a Pixel 3 XL. 🙂

like image 13
starkej2 Avatar answered Oct 17 '22 21:10

starkej2