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

强颜欢笑 提交于 2019-12-03 09:26:12
Mohamed Saber

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

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

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

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

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!