Android Studio Catuck;连接到仿真器'

发布于 2025-01-23 01:14:36 字数 366 浏览 1 评论 0原文

我最近更新了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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(16

扛刀软妹 2025-01-30 01:14:36

我使用以下步骤解决了问题:

转到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.

超可爱的懒熊 2025-01-30 01:14:36

Solution1

  1. 从Android Studio的AVD Manager停止模拟器
  2. ,选择“工具”> “ Android”> AVD经理。
  3. 右键单击所使用的仿真器,然后选择“停止”。
  4. 尝试再次运行模拟器。

解决方案2 - 退出Docker(MacOS)

从Mac计算机上的Docker应用程序退出,然后尝试再次启动模拟器。

解决方案3 - 擦除Android Studio的图像

  1. ,选择“工具”> “ Android”> AVD经理。
  2. 右键单击所使用的仿真器,然后选择“擦除数据”。
  3. 尝试再次运行模拟器。

解决方案4 - 卸载和重新安装

  1. Android Studio的AVD,选择“工具”> “ SDK Manager”> “ SDK工具”。
  2. 取消选中“ Android仿真器”。
  3. 选择“应用”以将模拟器卸载。
  4. 删除模拟器后,再次检查“ Android模拟器”框,然后选择“应用”以重新安装。

解决方案5-冰箱

  1. 转到设备管理器。
  2. 右键单击您的虚拟设备。
  3. 现在选择冷靴。

额外

  1. 利用Android Studio的“ Instant Run”
  2. 安装HAXM,然后切换到X86。 …
  3. 虚拟机加速度。 …
  4. 禁用模拟器的启动动画。
  5. 通过关闭不必要的应用程序来释放RAM。

Solution1

  1. Stop Emulator from AVD Manager
  2. From Android Studio, select “Tools” > “Android” > AVD Manager.
  3. Right-click the emulator you are using, then choose “Stop“.
  4. Try running the emulator again.

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

  1. From Android Studio, select “Tools” > “Android” > AVD Manager.
  2. Right-click the emulator you are using, then choose “Wipe Data“.
  3. Try running the emulator again.

Solution 4 – Uninstall and Reinstall AVD

  1. From Android Studio, select “Tools” > “SDK Manager” > “SDK Tools“.
  2. Uncheck “Android Emulator“.
  3. Select “Apply” to have the emulator uninstalled.
  4. Once the emulator has been removed, check the “Android Emulator” box again, then select “Apply” to reinstall it.

Solution 5 - Coldboot

  1. Go to Device Manager.
  2. Right-click your virtual device.
  3. Select Cold Boot Now.

Extra

  1. Make use of Android Studio’s ‘Instant Run’
  2. Install HAXM and Switch to x86. …
  3. Virtual machine acceleration. …
  4. Disable the emulator’s boot animation.
  5. Free your ram by closing unnecessary apps.
生死何惧 2025-01-30 01:14:36

这可以帮助我

转到设备管理器,然后右键单击虚拟设备,然后选择Cold Boot,现在

可以制作新的虚拟设备

This help me

Go to Device Manager and right-click your virtual device and select Cold Boot Now

Or you can make new virtual device

橘香 2025-01-30 01:14:36

我的修复程序是下载一些模拟器组件更新。只需在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!

月寒剑心 2025-01-30 01:14:36

对我来说,帮助启用AVD Config中的复选框“启用设备框架”。

For me helped to enable checkbox "Enable device frame" in avd config.

胡大本事 2025-01-30 01:14:36

Android Studio Hedgehog:在设备管理器中选择设备 - 右菜单:擦除数据然后冷启动。

Android Studio Hedgehog: in the Device Manager select the device - right menu: Wipe Data then Cold Boot.

梦屿孤独相伴 2025-01-30 01:14:36

擦除用户数据将问题固定在我这方面,

wiping user data fixed the issue on my side,

陌路黄昏 2025-01-30 01:14:36

我也有同样的问题。我通过删除数据

  1. 要停止运行模拟器,请单击菜单,然后选择stop stop
  2. 要清除模拟器的数据,请单击菜单,然后选择擦除数据

我希望这也对您有所帮助。愉快的编码!

I also have the same issue. I solved it by removing data:

  1. To stop a running emulator, click Menu and select Stop.
  2. To clear the data for an emulator, click Menu and select Wipe Data.
    enter image description here

I hope this help you too. Happy coding!

记忆消瘦 2025-01-30 01:14:36

我的问题通过从快速启动更改为冷启动来解决新的虚拟设备来解决。

“在快速启动模拟器中,从STAT开始,该设备上次退出时保存”

“虽然冷靴模拟器从电源开始开始”

如何从快速启动到冷靴子更改

Me Problem Solve By creating new Virtual device by changing from Quick boot to Cold 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

只为一人 2025-01-30 01:14:36

如果您正在运行 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.

狂之美人 2025-01-30 01:14:36

就我而言,在工具窗口中显示时,我可以使用“ 1:1”视图连接。
显示它后,您可以调整窗口大小的大小。

步骤:

  1. [连接到模拟器]提示显示
  2. 单击[1:1]按钮

环境如下:

  • MacBook Air(M1,2020)
  • Android Studio Dolphin | 2021.3.1补丁1
  • Android Emulator 31.3.14
  • Android Tiramisu ARM64-V8A

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:

  1. [Connecting to Emulator] prompt shown
  2. Click [1:1] button

The environment is as follows

  • MacBook Air (M1, 2020)
  • Android Studio Dolphin | 2021.3.1 Patch 1
  • Android Emulator 31.3.14
  • Android Tiramisu arm64-v8a
魄砕の薆 2025-01-30 01:14:36

对于我的情况,我制作了一个新的虚拟设备,以曲柄或停止“ 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.

云之铃。 2025-01-30 01:14:36

至于我关闭或重新启动计算机,它是有效的。 (MASOS)

As for me shutdown or restart the computer, it is work. (masos)

梦屿孤独相伴 2025-01-30 01:14:36

我处理了这个问题很多小时,我尝试了这里提到的所有内容。

  1. 我在IDE中重新安装了SDK
  2. 时,我重新创建了仿真器
  3. ,在
  4. 重新启动笔记本电脑
  5. 删除了与BREW完成的另一个本地安装

,我删除了在阅读 this 文档并从命令行中安装APK,我在ADB使用的端口上使用了一些配置。

最后,这种设置使其正常工作(恢复缓存无效)
使用自动启动和管理服务器的ADB设置

我在Mac上

I dealt wis this issue for many hours, i tried everything mentioned here.

  1. I reinstall the SDK in the IDE
  2. I recreate the emulator
  3. I restart AS
  4. I restart my laptop
  5. I delete another local installation of SDK done with brew

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

平安喜乐 2025-01-30 01:14:36

转到文件 - >项目结构 - >项目 - >选择SDK版本。然后,您可以在Android Studio中看到模拟器名称

”在此处输入图像说明”

Go to File -> Project structure -> Project -> select SDK version. Then you can see emulator name in android studio

enter image description here

橙味迷妹 2025-01-30 01:14:36

我能够通过重新安装Android Studio和模拟器​​来解决此问题。

I was able to fix this by reinstalling Android Studio and the emulator.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文