You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Ubuntu 17.10下Android Studio模拟器崩溃(退出码139/SIGSEGV)求助

Fixing Android Studio Emulator Crash (Exit Code 139/SIGSEGV) on Ubuntu 17.10

Hey there, sorry to hear you're stuck with this frustrating emulator crash! Since the common fixes you tried (tweaking AndroidManifest.xml and adjusting AVD RAM/Graphics) didn't work, let's dive into some Ubuntu-specific solutions that often resolve this SIGSEGV issue:

  • Adjust system memory map limits
    The Android Emulator requires a higher vm.max_map_count than Ubuntu's default. Run this command to set it temporarily:

    sudo sysctl -w vm.max_map_count=262144
    

    To make this change permanent, open /etc/sysctl.conf with a text editor (like sudo nano /etc/sysctl.conf) and add this line at the bottom:

    vm.max_map_count=262144
    

    Save the file and reboot your system to apply it.

  • Install missing 32-bit libraries
    Ubuntu 17.10 is a 64-bit system, but the Android Emulator relies on some 32-bit components. Install them with:

    sudo apt-get install lib32stdc++6 lib32z1
    

    After installation, restart Android Studio and try launching the emulator again.

  • Create a fresh AVD with a compatible system image
    Corrupted AVD configurations can cause crashes even after adjusting settings. Try creating a new AVD using an older, more stable system image (like API 26 or 28) instead of the latest one. Make sure to keep the "Software GLES 2.0" graphics setting enabled during setup.

  • Update or switch GPU drivers
    Ubuntu 17.10's default open-source GPU drivers might have compatibility issues with the emulator:

    • For NVIDIA GPUs: Open "Software & Updates" > "Additional Drivers" and select the latest proprietary NVIDIA driver, then reboot.
    • For AMD/Intel GPUs: Update your Mesa graphics libraries with:
      sudo apt-get update && sudo apt-get upgrade mesa-utils
      
  • Tweak Android Studio's emulator global settings
    Go to File > Settings > Tools > Emulator and uncheck the option "Use hardware acceleration when available". Even though you set software graphics in the AVD, this global setting might be overriding your per-AVD configuration.

Give these steps a try one by one—usually one of them resolves the SIGSEGV crash on Ubuntu 17.10. Hope you get your emulator up and running soon!

内容的提问来源于stack exchange,提问作者Metehan Gülaç

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.19 08:56:40