简体   繁体   English

android studio 上显示的透明模拟器

[英]Transparent Emulator showing on android studio

I am trying to run my first program on Android Studio 3.0.1.我正在尝试在 Android Studio 3.0.1 上运行我的第一个程序。 However when i fire up the emulator, it comes transparent and nothing shows up on it.但是,当我启动模拟器时,它变得透明并且没有任何显示。

在此处输入图片说明

我能够解决同样的问题。在模拟器的设置中,选择软件模拟而不是自动,它有效。希望它适用于所有人

Start virtual device.启动虚拟设备。 On the additional panel click button "...", go to Settings, select tab Advanced, change OpenGL renderer, restart virtual device.在附加面板上单击按钮“...”,转到设置,选择选项卡高级,更改 OpenGL 渲染器,重新启动虚拟设备。 For me helps ANGLE (D3D11) or "SwiftShader" options对我来说帮助 ANGLE (D3D11) 或“SwiftShader”选项

If you are using NVIDIA GPU and on the same time you have Integrated graphics card, it's possible to experience graphics emulation issues.如果您使用 NVIDIA GPU 并同时拥有集成显卡,则可能会遇到图形仿真问题。 You can verify which GPU executes current emulation.您可以验证哪个 GPU 执行当前仿真。 If it's NVIDIA you can try to select force usage of Integrated GPU:如果是 NVIDIA,您可以尝试选择强制使用 Integrated GPU:

  1. Open Emulator in Android studio在 Android Studio 中打开模拟器
  2. Verify you have transparent screen on device验证您在设备上有透明屏幕
  3. Open "NVIDIA Control Panel" Application打开“NVIDIA 控制面板”应用程序
  4. Go to "3D Settings" -> "Manage 3D Settings" -> Tab "Program Settings" see how screen looks like -> Click button "Add" in "1. Select a program to customize" and choose "/qemu_system-x86_x64.exe" -> In "2. Select the preferred graphics processor for this program" set "Integrated graphics"转到“3D设置”->“管理3D设置”->选项卡“程序设置”查看屏幕外观->单击“1.选择要自定义的程序”中的“添加”按钮并选择“/qemu_system-x86_x64. exe” -> 在“2. 为该程序选择首选图形处理器”中设置“集成图形”
  5. Restart AVD emulator重新启动 AVD 模拟器
  6. Done完成

如果您使用的是配备 optmus 技术的笔记本电脑,请尝试转到设备管理器并禁用您的 Intel HD 显卡。

I was able to resolve this problem by changing the emulator settings to software emulation.我能够通过将模拟器设置更改为软件模拟来解决这个问题。

Tools > AVD manager > Edit (Edit icon) > change graphics to software emulation . Tools > AVD manager > Edit (Edit icon) >graphics更改为software emulation (by default it shows Automatic Emulation ) (默认情况下它显示 Automatic Emulation )

AVD 图形设置

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM