【问题标题】:Cannot start any emulator anymore无法再启动任何模拟器
【发布时间】:2018-05-20 11:20:51
【问题描述】:

我尝试启动 AVD,但总是收到以下错误:

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

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

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

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

编辑 - 环境:

  • Windows 10(高端商务笔记本,戴尔 precisison 7510)
  • Android Studio 3.0
  • SDK 工具:
    • Android 模拟器 26.1.4:已安装
    • Intel x86 Emulator Accelerator(HAXM 安装程序):已安装

我尝试了什么

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

其他信息

尝试从命令行使用“emulator @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_xPKcS0_S0_i”。

  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:\AndroidSDK\emulator'
    emulator:  Found directory: M:\AndroidSDK/system-images\android-25\google_apis_playstore\x86\
    
    emulator:Probing for M:\AndroidSDK/system-images\android-25\google_apis_playstore\x86\/kernel-ranchu: file exists
    emulator:Auto-config: -engine qemu2 (based on configuration)
    emulator:  Found directory: M:\AndroidSDK/system-images\android-25\google_apis_playstore\x86\
    
    emulator:emuDirName: 'M:\AndroidSDK\emulator'
    emulator:try dir M:\AndroidSDK\emulator
    emulator:Trying emulator path 'M:\AndroidSDK\emulator/qemu/windows-x86_64/qemu-system-i386.exe'
    emulator:Found target-specific 64-bit emulator binary: M:\AndroidSDK\emulator/qemu/windows-x86_64/qemu-system-i386.exe
    emulator:Adding library search path: 'M:\AndroidSDK\emulator/lib64'
    emulator:Adding library search path: 'M:\AndroidSDK\emulator/lib64/gles_swiftshader'
    emulator:Adding library search path: 'M:\AndroidSDK\emulator/lib64/gles_angle'
    emulator:Adding library search path: 'M:\AndroidSDK\emulator/lib64/gles_angle9'
    emulator:Adding library search path: 'M:\AndroidSDK\emulator/lib64/gles_angle11'
    emulator: Adding library search path for Qt: 'M:\AndroidSDK\emulator\lib64\qt\lib'
    emulator: Setting Qt plugin search path: QT_QPA_PLATFORM_PLUGIN_PATH=M:\AndroidSDK\emulator\lib64\qt\plugins
    emulator:Quoted param: [M:\AndroidSDK\emulator/qemu/windows-x86_64/qemu-system-i386.exe]
    emulator:Quoted param: [@Nexus_5_API_25]
    emulator:Quoted param: [-verbose]
    emulator: Running :M:\AndroidSDK\emulator/qemu/windows-x86_64/qemu-system-i386.exe
    emulator: qemu backend: argv[00] = "M:\AndroidSDK\emulator/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:\AndroidSDK\emulator/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-images\android-25\google_apis_playstore\x86\
    runtime.network.latency=none
    runtime.network.speed=full
    sdcard.size=100M
    showDeviceFrame=yes
    skin.dynamic=yes
    skin.name=nexus_5
    skin.path=M:\AndroidSDK\skins\nexus_5
    tag.display=Google Play
    tag.id=google_apis_playstore
    vm.heapSize=128
    

【问题讨论】:

    标签: android android-studio android-emulator android-studio-3.0


    【解决方案1】:

    你必须检查:

    • 您的磁盘大小未满 - 这通常是由于创建了一些在 AVD Manager 中未使用的虚拟设备(因此请删除未使用的设备)

      李>
    • Emulator 的 RAM 大小不应满足您的要求

    解决步骤(已测试):

    1. 重启您的 Android Studio

    2. 在您的 AVD 管理器中创建新设备

    3. 增加模拟器的 RAM 大小

    【讨论】:

      【解决方案2】:

      创建新的 AVD。

      还有

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

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

      【讨论】:

        【解决方案3】:

        据我了解。与 AVD 相比,最好使用 Genymotion。链接是HERE

        1. 下载 Genymotion。
        2. 如果没有使用 Genymotion,请下载 Virtual Box。
        3. 选择任何类型的设备在 Android 中进行测试。

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

        通过应用一些 zip 文件,您还可以使用 Genymotion 进行 Google Map 测试,并且您还可以使用 Google Play Services

        【讨论】:

          【解决方案4】:

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

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

          如果您觉得这不合适,请忽略。

          【讨论】:

          • 我没有使用即时运行,感觉它的成本比我从中获得的要高(我时不时地看到错误,然后我在我的代码中寻找解决方案,而我只需要重新编译我的项目,因为 IR 搞砸了)
          【解决方案5】:

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

          所以从 SDK 工具

          更新 Android Emulator

          更新和安装 Google play Intel Atom x86 System Image 用于运行模拟器的 SDK 平台(API 25)。

          希望这将帮助您解决问题

          【讨论】:

            【解决方案6】:

            您好,请在您的笔记本中检查以下内容。

            当您升级 windows 并且 hyper-v 虚拟机的配置没有同时更新时会发生这种情况。

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

            这应该会更新该 Windows 10 手机模拟器的虚拟机配置,并且模拟器应该可以正常工作。

            这个问题发生在我的两台笔记本电脑上,这样做解决了它。

            如果您的问题仍未解决,请点击下面的链接,它可以帮助您。

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

            希望这可以帮助您尝试一下。

            【讨论】:

              猜你喜欢
              • 1970-01-01
              • 2017-02-16
              • 2020-06-08
              • 2014-12-20
              相关资源
              最近更新 更多