简体   繁体   English

空活动在Android模拟器上不显示任何屏幕

[英]Empty activity showing no screen on Android Emulator

I've just begun Android development and set up my Android Studio and Emulator up with minimum version of the project API as KitKat and maximum version as Oreo (8.0). 我刚刚开始Android开发,并设置了我的Android Studio和模拟器​​,项目API的最低版本为KitKat,最高版本为Oreo(8.0)。 I created an empty activity to start of with and wanted to test it out but when I run it I only get the following screen (it is literally transparent): 我创建了一个空的活动开始并想要对其进行测试,但是当我运行它时,我只会得到以下屏幕(从字面上看是透明的):

在此处输入图片说明

I've already changed my emulated performance graphics to Hardware - GLES 2.0. 我已经将仿真性能图形更改为“硬件-GLES 2.0”。 I've also tried cold booting and cancelling the saved state but to no avail. 我也尝试过冷启动并取消保存的状态,但无济于事。 Here are the other AVD settings: 以下是其他AVD设置:

在此处输入图片说明

在此处输入图片说明

I would appreciate any help as I am very eager to get started. 我会非常乐意入门,希望能对您有所帮助。 Thank you! 谢谢!

Okay try to create a new virtual device. 好的,尝试创建一个新的虚拟设备。

And if then also it doesn't work then you can also run your application on your real device 如果那还是不起作用,那么您也可以在真实设备上运行应用程序

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

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