简体   繁体   English

Android Studio Emulator 已经在运行。 但我在 windows 上看不到模拟器并运行我的项目

[英]Android Studio Emulator is already running. But I can't see the emulator on the windows and run my project

Installed android studio latest update and started a project.安装 android studio 最新更新并启动项目。 But when I press run, emulator is not showing up.但是当我按下运行时,模拟器没有出现。 And it say delete *.lock files.它说删除 *.lock 文件。 But I have already tried.但我已经尝试过了。 Still couldn't see the emulator.还是看不到模拟器。 Please help me.请帮我。 enter image description here在此处输入图像描述

You don't have to completely delete the emulator when this happens.发生这种情况时,您不必完全删除模拟器。 The files to delete should have a ".lock" extension:要删除的文件应具有“.lock”扩展名:

在此处输入图像描述

You don't need to touch the configuration files.您无需接触配置文件。

You can easily find the files location by clicking on the arrow under the Actions tab (in the ADB manager), and selecting "Show on Disk".您可以通过单击“操作”选项卡(在 ADB 管理器中)下的箭头并选择“在磁盘上显示”来轻松找到文件位置。

On the AVD (Android Virtual Device), edit the device graphic setting from Automatic or Hardware to Software在 AVD(Android 虚拟设备)上,将设备图形设置从自动硬件编辑为软件

Go to the down arrow and click on the "Show on Disk" link like the attached image. Go 到向下箭头,然后单击“在磁盘上显示”链接,如附图所示。 You will get the list of all files, remove the file "hardware-qemu.ini.lock" and start again.您将获得所有文件的列表,删除文件“hardware-qemu.ini.lock”并重新开始。

在此处输入图像描述

Try to delete All the .lock files under.android/AVD/emulator_name/ .lock, And right click the emulator wipe data,restart/rerun the emulator.尝试删除.android/AVD/emulator_name/.lock下的所有.lock文件,然后右键模拟器擦除数据,重启/重新运行模拟器。

  It's restart the Avd and rebuild the gradle projects. 

You can open the task manager and see if there are "qemu-system-x86-64.exe", "adb.exe" and "emulator64-crash-service.exe" processes among the processes, and then you can kill these processes.可以打开任务管理器,查看进程中是否有“qemu-system-x86-64.exe”、“adb.exe”和“emulator64-crash-service.exe”进程,然后可以kill掉这些进程. so you can restart your emulator.所以你可以重新启动你的模拟器。

Thank you all for the answers.谢谢大家的回答。 After trying many ways of your suggestion, I finally decided to uninstall this version and reinstalled the previous archive and it now working fine.在尝试了您建议的多种方式后,我最终决定卸载此版本并重新安装以前的存档,现在可以正常工作了。 I still don't know the reason why.我仍然不知道为什么。 Thanks谢谢

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

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