无法启动任何模拟器

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了无法启动任何模拟器相关的知识,希望对你有一定的参考价值。

我试图启动AVD,但我总是得到以下错误:

仿真器:进程以退出代码-1073741511(0xC0000139)结束

我尝试创建新的AVD并尝试在“自动”,“硬件”和“软件”之间切换“仿真器性能”的使用,但没有任何帮助,我总是从上面得到结果。

当我尝试启动AVD时,错误立即出现。

有什么想法会导致这种情况吗?我认为这个问题随着android studio 3.0的更新而来......

编辑 - 环境:

  • Windows 10(高端商务笔记本,戴尔精密7510)
  • Android Studio 3.0
  • SDK工具: Android Emulator 26.1.4:已安装 Intel x86仿真器加速器(HAXM安装程序):已安装

我尝试了什么

  • 删除了完整的Android SDK(仅限SDK,没有安卓工作室)并再次安装(没有成功)。
  • 尝试使用具有自动/硬件/软件图形设置的模拟器=>在每种情况下都相同的例外
  • 更新的intel和nvidia驱动程序(可能与此相关,因为我的笔记本存在驱动程序问题),但也没有帮助
  • 删除虚拟设备并创建一个新的=>也没有帮助

其他信息

试图从命令行使用“模拟器@Name_of_AVD -verbose”启动模拟器,这给了我以下信息(手动翻译,因此可能不是100%准确):

  1. 弹出窗口如下: 标题:qemu-system-i386.exe - 找不到入口点 文本:在DLL“M: AndroidSDK emulator lib64 qt lib Qt5Svg.dll”中找不到过程入口点“_Z4endlR11QTextStream”。
  2. 弹出窗口如下: 标题:qemu-system-i386.exe - 找不到入口点 文本:在DLL“M: AndroidSDK emulator qemu windows-x86_64 qemu-system-i386.exe”中找不到过程入口点“_Z11qt_assert_xPKcS_S_S_”。
  3. 完整控制台输出: emulator:Android emulator version 27.0.2.0 (build_id 4498654) (CL:f388734068bae38c6115263feea33c68eed531fe) emulator:Found AVD name 'Nexus_5_API_25' emulator:Found AVD target architecture: x86 emulator:argv[0]: 'emulator.exe'; program directory: 'M:AndroidSDKemulator' emulator: Found directory: M:AndroidSDK/system-imagesandroid-25google_apis_playstorex86 emulator:Probing for M:AndroidSDK/system-imagesandroid-25google_apis_playstorex86/kernel-ranchu: file exists emulator:Auto-config: -engine qemu2 (based on configuration) emulator: Found directory: M:AndroidSDK/system-imagesandroid-25google_apis_playstorex86 emulator:emuDirName: 'M:AndroidSDKemulator' emulator:try dir M:AndroidSDKemulator emulator:Trying emulator path 'M:AndroidSDKemulator/qemu/windows-x86_64/qemu-system-i386.exe' emulator:Found target-specific 64-bit emulator binary: M:AndroidSDKemulator/qemu/windows-x86_64/qemu-system-i386.exe emulator:Adding library search path: 'M:AndroidSDKemulator/lib64' emulator:Adding library search path: 'M:AndroidSDKemulator/lib64/gles_swiftshader' emulator:Adding library search path: 'M:AndroidSDKemulator/lib64/gles_angle' emulator:Adding library search path: 'M:AndroidSDKemulator/lib64/gles_angle9' emulator:Adding library search path: 'M:AndroidSDKemulator/lib64/gles_angle11' emulator: Adding library search path for Qt: 'M:AndroidSDKemulatorlib64qtlib' emulator: Setting Qt plugin search path: QT_QPA_PLATFORM_PLUGIN_PATH=M:AndroidSDKemulatorlib64qtplugins emulator:Quoted param: [M:AndroidSDKemulator/qemu/windows-x86_64/qemu-system-i386.exe] emulator:Quoted param: [@Nexus_5_API_25] emulator:Quoted param: [-verbose] emulator: Running :M:AndroidSDKemulator/qemu/windows-x86_64/qemu-system-i386.exe emulator: qemu backend: argv[00] = "M:AndroidSDKemulator/qemu/windows-x86_64/qemu-system-i386.exe" emulator: qemu backend: argv[01] = "@Nexus_5_API_25" emulator: qemu backend: argv[02] = "-verbose" emulator: Concatenated backend parameters: M:AndroidSDKemulator/qemu/windows-x86_64/qemu-system-i386.exe @Nexus_5_API_25 -verbose
  4. 模拟器设置: AvdId=Nexus_5_API_25 PlayStore.enabled=true abi.type=x86 avd.ini.displayname=Nexus 5 API 25 avd.ini.encoding=UTF-8 disk.dataPartition.size=800M fastboot.forceColdBoot=no hw.accelerometer=yes hw.audioInput=yes hw.battery=yes hw.camera.back=emulated hw.camera.front=emulated hw.cpu.arch=x86 hw.cpu.ncore=1 hw.dPad=no hw.device.hash2=MD5:1c925b9117dd9f33c5128dac289a0d68 hw.device.manufacturer=Google hw.device.name=Nexus 5 hw.gps=yes hw.gpu.enabled=yes hw.gpu.mode=auto hw.initialOrientation=Portrait hw.keyboard=yes hw.lcd.density=480 hw.lcd.height=1920 hw.lcd.width=1080 hw.mainKeys=no hw.ramSize=1536 hw.sdCard=yes hw.sensors.orientation=yes hw.sensors.proximity=yes hw.trackBall=no image.sysdir.1=system-imagesandroid-25google_apis_playstorex86 runtime.network.latency=none runtime.network.speed=full sdcard.size=100M showDeviceFrame=yes skin.dynamic=yes skin.name=nexus_5 skin.path=M:AndroidSDKskins exus_5 tag.display=Google Play tag.id=google_apis_playstore vm.heapSize=128
答案

你要检查:

  • 您在磁盘上的大小未满 - 这通常是由于创建了AVD Manager中未使用的某些虚拟设备(因此如果有的话,请删除未使用的)
  • 模拟器的RAM大小不应满足您的要求

在处理步骤(测试):

  1. 重新启动Android Studio
  2. 在AVD Manager中创建新设备
  3. 增加仿真器的RAM大小
另一答案

创建新的AVD。

获取Android Studio 3.1如果3.0仍然存在问题,3.1有新的DEX编译器D8,其中3.0有DX。

正如CodeBulls所说,上述即时运行也可能是一个问题

另一答案

据我所知。与AVD相比,使用Genymotion将是最佳选择。链接是HERE

  1. 下载Genymotion。
  2. 如果不是Genymotion,请下载Virtual Box。
  3. 选择任何类型的设备进行Android测试。

注意:使用Android Studio和Genymotion时至少需要4 GB RAM。

通过应用一些zip文件,您还可以使用Genymotion来测试Google Map测试,并且您还可以使用Google Play服务

另一答案

只考虑新功能Multi-dex或Instant App Settings会搞乱您的项目。最后一次尝试:禁用即时运行禁用即时运行:

打开设置或首选项对话框。导航到构建,执行,部署>即时运行。取消选中启用即时运行旁边的复选框。

如果你认为这是不合适的,请忽略。

另一答案

exit code -1073741511 (0xC0000139)代表C或C ++依赖文件的一些错误。这是一些DLL文件缺少模拟器。

所以从SDK工具更新Android模拟器

更新并安装Google播放用于运行模拟器的SDK平台的英特尔凌动x86系统映像(API 25)。

希望这能帮助您解决问题

另一答案

嗨,请检查下面的东西到你的笔记本。

升级Windows时会发生这种情况,并且Hyper-v虚拟机的配置不会同时更新。

打开Hyper-V Manager应用程序(在Windows 10中)>选择出现错误的计算机>在右侧,单击“升级配置”并选择“升级”。

这应该更新您的Windows 10手机模拟器的虚拟机配置,模拟器应该正常工作。

我的两台笔记本电脑都出现了这个问题并修复了这个问题。

如果您的问题仍然没有解决,请按照以下链接帮助您。

http://www.itwriting.com/blog/9371-how-to-run-android-studio-on-windows-without-disabling-hyper-v.html

希望这有助于你尝试。

以上是关于无法启动任何模拟器的主要内容,如果未能解决你的问题,请参考以下文章

Android手机上的错误“无法启动地理定位服务代码:2”

我无法从 firebase 获取下载网址()。请任何人帮助这是我的代码和错误。 (我正在使用片段)[重复]

模拟器无法启动(连接到模拟器)

Apple Watch 模拟器无法启动

Visual Studio 代码无法检测到模拟器设备或连接的电话

XCode 7.3 模拟器无法启动