Android Studio Catuck;连接到仿真器'
我最近更新了Android Studio,并且像往常一样,它破裂了。每当我尝试启动模拟器时,Android Studio都会永远卡在“连接到仿真器”屏幕中。
我尝试过的事情:
- 将VM堆尺寸增加到512MB,
- 将RAM尺寸降低至512MB
- 擦拭设备数据
- 无效的缓存和重新启动Android Studio
- 更改设备的系统映像(将API 32 ARM64-V8A)
- 重新安装
- ,以重新安装虚拟设备
I' M上的M1 MacBook和运行Android Studio Bumblebee 2021.1.1补丁3
编辑:我也尝试切换到冷靴
I recently updated Android studio, and as usual, it broke. Whenever I try to launch an emulator, Android Studio gets stuck in the 'Connecting to emulator' screen forever.
Things I've tried:
- Increasing VM heap size to 512mb
- Decreasing RAM size to 512mb
- Wiping device data
- Invalidating cache and restarting Android Studio
- Changing the device's system image (to API 32 arm64-v8a)
- Reinstalling the virtual device
- Installing a new virtual device
I'm on an M1 Macbook and running Android Studio Bumblebee 2021.1.1 Patch 3
edit: I've also tried switching to Cold Boot
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(16)
我使用以下步骤解决了问题:
转到Android Studio - >偏好 - >工具 - >仿真器 - >取消选中“在工具窗口中启动”。
和重试再次启动模拟器或使用同一模拟器运行应用程序。
I fixed my issue using the following steps:
Go to Android Studio -> Preferences -> Tools -> Emulator -> Uncheck “Launch in a tool window”.
And retry to launch emulator again OR run app on using the same emulator.
Solution1
解决方案2 - 退出Docker(MacOS)
从Mac计算机上的Docker应用程序退出,然后尝试再次启动模拟器。
解决方案3 - 擦除Android Studio的图像
解决方案4 - 卸载和重新安装
解决方案5-冰箱
额外
Solution1
Solution 2 – Exit Docker (MacOS)
Exit out of the Docker application on your Mac computer, then attempt to launch the emulator again.
Solution 3 – Wipe Image
Solution 4 – Uninstall and Reinstall AVD
Solution 5 - Coldboot
Extra
这可以帮助我
转到
设备管理器
,然后右键单击虚拟设备,然后选择Cold Boot,现在
可以制作新的虚拟设备
This help me
Go to
Device Manager
and right-click your virtual device and selectCold Boot Now
Or you can make new virtual device
我的修复程序是下载一些模拟器组件更新。只需在Help->检查更新下检查Android Studios中的更新即可。希望这可以帮助某人节省一天的头痛!
my fix was to download some emulator components update. just check for updates in Android Studios under Help->check for updates. hope this helps someone save a day of headache!
对我来说,帮助启用AVD Config中的复选框“启用设备框架”。
For me helped to enable checkbox "Enable device frame" in avd config.
Android Studio Hedgehog:在设备管理器中选择设备 - 右菜单:擦除数据然后冷启动。
Android Studio Hedgehog: in the Device Manager select the device - right menu: Wipe Data then Cold Boot.
擦除用户数据将问题固定在我这方面,
wiping user data fixed the issue on my side,
我也有同样的问题。我通过
删除数据
:菜单
,然后选择stop stop
。菜单
,然后选择擦除数据
。我希望这也对您有所帮助。愉快的编码!
I also have the same issue. I solved it by
removing data
:Menu
and selectStop
.Menu
and selectWipe Data
.I hope this help you too. Happy coding!
我的问题通过从
快速启动
更改为冷启动
来解决新的虚拟设备来解决。“在快速启动模拟器中,从STAT开始,该设备上次退出时保存”
“虽然冷靴模拟器从电源开始开始”
如何从快速启动到冷靴子更改
Me Problem Solve By creating new Virtual device by changing from
Quick boot
toCold boot
."In quick boot emulator start from stat that saved when the device last exited"
"while Cold boot emulator start as from a power up"
how to change from QUICK BOOT to COLD BOOT
如果您正在运行 flutter 项目,请从终端
flutter Doctor
运行。就我而言,它报告说SDK没有适当设置为扑朔迷离。If you are running a flutter project, run from the terminal
flutter doctor
. In my case, it reported that the SDK was not properly set up for flutter.就我而言,在工具窗口中显示时,我可以使用“ 1:1”视图连接。
显示它后,您可以调整窗口大小的大小。
步骤:
环境如下:
In my case, I was able to connect by using the "1:1" view when displayed in the tool window.
Once it is displayed, you can resize window size.
Steps:
The environment is as follows
对于我的情况,我制作了一个新的虚拟设备,以曲柄或停止“ AVD仍在运行”错误。 “ pixel 2 api”是我制作的新虚拟设备,因为我无法删除,冷启动,然后从“ AVD仍在运行”错误中擦除数据“测试HP常规”虚拟设备。
然后,我检查了该错误该怎么办,发现您必须卸载IDE。但是,我真的不想卸载AVD,因为从其他情况下,当我重新安装AVD时,我得到了许多问题,这使我必须重置我的PC。因为我的AMD仿真器被砖了。
简而言之,从制作另一个虚拟设备并运行它。 AVD会重新启动并使错误和引导问题消失。
如果这无济于事,那么您应该尝试通过转到AVD文件部分手动进行操作,并尝试阻止它在后台运行。
for my case I made a new virtual device to crank or stop the "AVD still running" error. The "Pixel 2 API" is the new virtual device I made because I can't delete, cold boot, and wipe data the "Test HP General" virtual device from "AVD still running" error.
Then, I checked out what should I do with that error and found out you have to uninstall the IDE. But, I don't really want to uninstall the AVD because from other case when I reinstall the AVD I got many problem that makes me have to reset my PC. Because my AMD emulator got bricked.
In short, from making another Virtual Device and run it. The AVD would restart and make the error and booting problem go away.
If this doesn't help, then you should try to do it manually by going to the AVD file section and try to stop it from running in the background.
至于我关闭或重新启动计算机,它是有效的。 (MASOS)
As for me shutdown or restart the computer, it is work. (masos)
我处理了这个问题很多小时,我尝试了这里提到的所有内容。
,我删除了在阅读 this 文档并从命令行中安装APK,我在ADB使用的端口上使用了一些配置。
最后,这种设置使其正常工作(恢复缓存无效)
使用自动启动和管理服务器的ADB设置
我在Mac上
I dealt wis this issue for many hours, i tried everything mentioned here.
After reading this documentation and installing the APK from command line I played a bit with the configurations on the port used by adb.
Finally this settings made it work (with a invalidate caches restart)
adb settings using automatically start and manage server
I am on Mac btw
转到文件 - >项目结构 - >项目 - >选择SDK版本。然后,您可以在Android Studio中看到模拟器名称
Go to File -> Project structure -> Project -> select SDK version. Then you can see emulator name in android studio
我能够通过重新安装Android Studio和模拟器来解决此问题。
I was able to fix this by reinstalling Android Studio and the emulator.