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

时间:2019-02-05 20:14:31

标签: android android-emulator

我的模拟器突然停止工作。我的操作系统,Android Studio,模拟器或其他版本均未进行任何更新。 (使用MacOS)通常,当我尝试运行仿真器时,我会在文档中看到仿真器图标,并迅速显示设备窗口。但是,当我现在尝试运行时,我在扩展坞中看到标题为“仿真器”的蓝色反弹文件夹。几分钟后,它停止弹跳,似乎只是一个文件夹。单击它没有任何作用。右键单击它,我可以选择强制退出。如果我打开“强制退出应用程序”,则会发现列出了“ qemu-system-x86(无响应)”。找不到仿真器窗口。

我尝试过的事情

  • 重新启动所有内容。操作系统,Android Studio。
  • 删除模拟器并创建一个新的模拟器。
  • 尝试不同的模拟器图像。
  • 尝试不同的模拟器框架。
  • 卸载/安装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

2 个答案:

答案 0 :(得分:0)

以某种方式,有时将disk.dataPartition.size设置为“ 6442450944”,该值等于6TB(如果使用千字节)。当我将disk.dataPartition.size设置回 800M 时,仿真器启动没有问题。我使用的是Visual Studio for Mac 7.8预览版,几乎所有模拟器都偶尔出现这种情况。

答案 1 :(得分:0)

我也遇到了同样的问题,并尝试了一切,但是除了卸载Android Studio以外,其他方法都无效。

重置所有内容可能会很麻烦,但是我建议您先卸载并删除与AndroidStudio相关的所有内容,然后重新安装。

uninstall instructions