Cal*_*nes 10 android android-virtual-device android-emulator android-studio
我在 StackOverflow 上进行了搜索,发现了许多类似的问题和许多不同的答案,但没有一个对我有用。
所以,最后几天我一直很好地使用 Android Studio 的模拟器,直到我尝试使用Google Play API添加新的虚拟设备,当我尝试运行它时,出现了以下消息:
AVD <emulator_name> 的模拟器进程已终止。
我尝试了很多不同的事情,还删除了我拥有的所有模拟器,但现在我创建的模拟器都不起作用
这是我在 Android Studio 日志中得到的日志:
[1647414] INFO - manager.EmulatorProcessHandler - Emulator: C:\Users\2DWeb\AppData\Local\Android\Sdk\emulator\emulator.exe -netdelay none -netspeed full -no-snapstorage -avd cel_30_debug1
[1649364] INFO - manager.EmulatorProcessHandler - Emulator: WARNING | unexpected system image feature string, emulator might not function correctly, please try updating the emulator.
[1649364] INFO - manager.EmulatorProcessHandler - Emulator: Warning: Quick Boot / Snapshots not supported on this machine. A CPU with EPT + UG features is currently needed. We will address this in a future release.
[1649380] INFO - manager.EmulatorProcessHandler - Emulator: WARNING | Not all modern X86 virtualization features supported, which introduces problems with slowdown when running Android on multicore vCPUs. Setting AVD to run with 1 vCPU core only.
[1650143] INFO - manager.EmulatorProcessHandler - Emulator: C:\Users\2DWeb\AppData\Local\Android\Sdk\emulator\qemu\windows-x86_64\qemu-system-x86_64.exe:/qemu.conf:1: no group defined
[1651630] INFO - manager.EmulatorProcessHandler - Emulator: INFO | configAndStartRenderer: setting vsync to 60 hz
[1651630] INFO - manager.EmulatorProcessHandler - Emulator: INFO | added library vulkan-1.dll
[1651665] INFO - manager.EmulatorProcessHandler - Emulator: INFO | Android emulator version 31.1.4.0 (build_id 7920983) (CL:N/A)
[1651665] INFO - manager.EmulatorProcessHandler - Emulator: Process finished with exit code 0
Run Code Online (Sandbox Code Playgroud)
我什至卸载了Android Studio并删除了所有相关目录并重新安装了它,但不起作用。
一些重要的事情:
以上均无法使模拟器正常工作。
小智 13
转到您的 Android Studio,选择 \xe2\x80\x9cTools\xe2\x80\x9d ->\xe2\x80\x9d SDK Manager\xe2\x80\x9d -> \xe2\x80\x9cSDK Tools\xe2\x80\x9d选项卡 -> 并更新到最新的 Android 模拟器版本。然后再次重新运行您的模拟器。解决了!希望能帮助到你。
\n截至 2020 年 5 月,对于仍在苦苦挣扎的 Macbook M1 (Pro/Max) 用户......
首先,不要从 Android Studio 启动模拟器。除了无用的“AVD 已被杀死或终止”消息之外,它不提供任何信息。
相反,输入这个。
~/Library/Android/sdk/tools/emulator
Run Code Online (Sandbox Code Playgroud)
它返回更详细的消息,如下所示。
emulator: ERROR: process is translated under Rosetta. Attempting to replace emulator installation.
emulator: Replacing via command: /Users/<USER>/Library/Android/sdk/emulator/darwin-aarch64-replace.sh (downloading ~120 MB)...
sh: /Users/<USER>/Library/Android/sdk/emulator/darwin-aarch64-replace.sh: No such file or directory
emulator: Replacement done. Please relaunch the emulator. You will also need to be using an Apple Silicon-compatible system image. Check the release updates blog (https://androidstudio.googleblog.com/) for more details
Run Code Online (Sandbox Code Playgroud)
所以就我而言,darwin-aarch64-replace.sh丢失了!
从这里下载文件。
问题解决了。
| 归档时间: |
|
| 查看次数: |
45228 次 |
| 最近记录: |