Android模拟器无法启动 - 应用程序无响应

问题描述 投票:0回答:1

我的模拟器突然停止工作。我的操作系统,Android Studio,模拟器或其他方面没有更新。 (使用MacOS)通常当我尝试运行我的模拟器时,我会在我的文档中看到模拟器图标,并且设备窗口会立即显示。但是,当我尝试现在运行时,我在我的Dock中获得了名为“Emulator”的弹跳蓝色文件夹。几分钟后,它停止弹跳,看起来只是一个文件夹。点击它什么都不做。右键单击它,我可以选择强制退出。如果我打开“强制退出应用程序”,我会发现列出了“qemu-system-x86(未响应)”。找不到模拟器窗口。

我尝试过的事情

  • 重启一切。 OS,Android工作室。
  • 删除模拟器并创建新模拟器。
  • 尝试不同的模拟器图像。
  • 尝试不同的模拟器框架。
  • 卸载/安装HAXM。
  • 卸载/安装模拟器。
  • 卸载/安装图像。
  • 通常我通过Android Studio运行模拟器。对于这个问题,我尝试用-verbose命令运行模拟器,希望找到任何线索。这是输出:
emulator: Android emulator version 28.0.23.0 (build_id 5264690) (CL:be2be19ca0131957449e8c0ded5e55070f9537b0)
emulator: Found AVD name 'Pixel_2_Pie'
emulator: Found AVD target architecture: x86
emulator: argv[0]: './emulator'; program directory: '/Users/cbingham/Library/Android/sdk/emulator/.'
emulator:  Found directory: /Users/cbingham/Library/Android/sdk/system-images/android-28/google_apis_playstore/x86/

emulator: Probing for /Users/cbingham/Library/Android/sdk/system-images/android-28/google_apis_playstore/x86//kernel-ranchu-64: file exists
emulator: Auto-config: -engine qemu2 (based on configuration)
emulator:  Found directory: /Users/cbingham/Library/Android/sdk/system-images/android-28/google_apis_playstore/x86/

emulator: emuDirName: '/Users/cbingham/Library/Android/sdk/emulator'
emulator:  Found directory: /Users/cbingham/Library/Android/sdk/system-images/android-28/google_apis_playstore/x86/

emulator: Probing for /Users/cbingham/Library/Android/sdk/system-images/android-28/google_apis_playstore/x86//kernel-ranchu-64: file exists
emulator: try dir /Users/cbingham/Library/Android/sdk/emulator/.
emulator: Trying emulator path '/Users/cbingham/Library/Android/sdk/emulator/./qemu/darwin-x86_64/qemu-system-x86_64'
emulator: Found target-specific 64-bit emulator binary: /Users/cbingham/Library/Android/sdk/emulator/./qemu/darwin-x86_64/qemu-system-x86_64
emulator: Adding library search path: '/Users/cbingham/Library/Android/sdk/emulator/./lib64'
emulator: Adding library search path: '/Users/cbingham/Library/Android/sdk/emulator/./lib64/gles_swiftshader'
emulator: Adding library search path: '/Users/cbingham/Library/Android/sdk/emulator/./lib64/gles_angle'
emulator: Adding library search path: '/Users/cbingham/Library/Android/sdk/emulator/./lib64/gles_angle9'
emulator: Adding library search path: '/Users/cbingham/Library/Android/sdk/emulator/./lib64/gles_angle11'
emulator: Adding library search path for Qt: '/Users/cbingham/Library/Android/sdk/emulator/./lib64/qt/lib'
emulator: Setting Qt plugin search path: QT_QPA_PLATFORM_PLUGIN_PATH=/Users/cbingham/Library/Android/sdk/emulator/./lib64/qt/plugins
emulator: Setting Qt to use software OpenGL: QT_OPENGL=software
emulator: Overriding pre-existing bad Qt high dpi settings...
emulator: Running :/Users/cbingham/Library/Android/sdk/emulator/./qemu/darwin-x86_64/qemu-system-x86_64
emulator: qemu backend: argv[00] = "/Users/cbingham/Library/Android/sdk/emulator/./qemu/darwin-x86_64/qemu-system-x86_64"
emulator: qemu backend: argv[01] = "-avd"
emulator: qemu backend: argv[02] = "Pixel_2_Pie"
emulator: qemu backend: argv[03] = "-verbose"
emulator: Concatenated backend parameters:
 /Users/cbingham/Library/Android/sdk/emulator/./qemu/darwin-x86_64/qemu-system-x86_64 -avd Pixel_2_Pie -verbose
emulator: Android virtual device file at: /Users/cbingham/.android/avd/Pixel_2_Pie.ini
emulator: virtual device content at /Users/cbingham/.android/avd/Pixel_2_Pie.avd
emulator: virtual device config file: /Users/cbingham/.android/avd/Pixel_2_Pie.avd/config.ini
emulator: using core hw config path: /Users/cbingham/.android/avd/Pixel_2_Pie.avd/hardware-qemu.ini
emulator: using snapshot lock path: /Users/cbingham/.android/avd/Pixel_2_Pie.avd/snapshot.lock
emulator: using multi-instance lock path: /Users/cbingham/.android/avd/Pixel_2_Pie.avd/multiinstance.lock
emulator: Found AVD target API level: 28
emulator: Read property file at /Users/cbingham/Library/Android/sdk/system-images/android-28/google_apis_playstore/x86//build.prop
emulator: No boot.prop property file found.
emulator: found skin 'pixel_2' in directory: /Users/cbingham/Library/Android/sdk/skins/
emulator: autoconfig: -skin pixel_2
emulator: autoconfig: -skindir /Users/cbingham/Library/Android/sdk/skins/
emulator: autoconfig: -kernel /Users/cbingham/Library/Android/sdk/system-images/android-28/google_apis_playstore/x86//kernel-ranchu-64
emulator: Target arch = 'x86'
emulator: Auto-config: -qemu -cpu qemu32
emulator: Auto-detect: Kernel image requires new device naming scheme.
emulator: Auto-detect: Kernel does not support YAFFS2 partitions.
emulator: autoconfig: -ramdisk /Users/cbingham/Library/Android/sdk/system-images/android-28/google_apis_playstore/x86//ramdisk.img
emulator: Using initial system image: /Users/cbingham/Library/Android/sdk/system-images/android-28/google_apis_playstore/x86//system.img
emulator: Using initial vendor image: /Users/cbingham/Library/Android/sdk/system-images/android-28/google_apis_playstore/x86//vendor.img
emulator: autoconfig: -data /Users/cbingham/.android/avd/Pixel_2_Pie.avd/userdata-qemu.img
emulator: autoconfig: -initdata /Users/cbingham/.android/avd/Pixel_2_Pie.avd/userdata.img
emulator: autoconfig: -cache /Users/cbingham/.android/avd/Pixel_2_Pie.avd/cache.img
emulator: autoconfig: -sdcard /Users/cbingham/.android/avd/Pixel_2_Pie.avd/sdcard.img
emulator: Physical RAM size: 1536MB

emulator: VM heap size 256MB is below hardware specified minimum of 384MB,setting it to that value
emulator: System image is read only
emulator: Found 2 DNS servers: 8.8.8.8 8.8.4.4

这是上面的模拟器的细节:

Name: Pixel_2_Pie
CPU/ABI: Google Play Intel Atom (x86)
Path: /Users/cbingham/.android/avd/Pixel_2_Pie.avd
Target: google_apis_playstore [Google Play] (API level 28)
Skin: pixel_2
SD Card: 512M
fastboot.chosenSnapshotFile: 
runtime.network.speed: full
hw.accelerometer: yes
hw.device.name: pixel_2
hw.lcd.width: 1080
hw.initialOrientation: Portrait
image.androidVersion.api: 28
tag.id: google_apis_playstore
hw.mainKeys: no
hw.camera.front: emulated
avd.ini.displayname: Pixel 2 Pie
hw.gpu.mode: auto
hw.ramSize: 1536
PlayStore.enabled: true
fastboot.forceColdBoot: no
hw.cpu.ncore: 4
hw.keyboard: yes
hw.sensors.proximity: yes
hw.dPad: no
hw.lcd.height: 1920
vm.heapSize: 256
skin.dynamic: yes
hw.device.manufacturer: Google
hw.gps: yes
hw.audioInput: yes
image.sysdir.1: system-images/android-28/google_apis_playstore/x86/
showDeviceFrame: yes
hw.camera.back: virtualscene
AvdId: Pixel_2_Pie
hw.lcd.density: 420
hw.arc: false
hw.device.hash2: MD5:55acbc83578326788df66a5cEd4c9aa
fastboot.forceChosenSnapshotBoot: no
fastboot.forceFastBoot: yes
hw.trackBall: no
hw.battery: yes
hw.sdCard: yes
tag.display: Google Play
runtime.network.latency: none
disk.dataPartition.size: 6442450944
hw.sensors.orientation: yes
avd.ini.encoding: UTF-8
hw.gpu.enabled: yes
android android-emulator
1个回答
0
投票

不知何故,disk.dataPartition.size有时设置为“6442450944”,等于6TB(如果使用千字节)。当我将disk.dataPartition.size设置回800M时,模拟器启动没有问题。我正在使用Visual Studio for Mac 7.8 Preview,它几乎与我的所有模拟器一起出现。


0
投票

我遇到了同样的问题并尽我所能,但除了卸载Android Studio之外什么都没有用。

重置一切可能会让人痛苦,但我建议您卸载并删除与AndroidStudio相关的所有内容,然后重新安装它。

uninstall instructions

© www.soinside.com 2019 - 2024. All rights reserved.