【问题标题】:Android studio on Ubuntu 17.10 : The emulator process for AVD Nexus_5_API_22 was killedUbuntu 17.10 上的 Android 工作室:AVD Nexus_5_API_22 的模拟器进程被杀死
【发布时间】:2018-04-24 03:29:40
【问题描述】:

我已经在我的 ubuntu 上重新安装了 android-studio 3.0。所有过程安装都正常。现在,我创建了一个新项目。但是当我尝试运行时,我在控制台上得到了这个:

11/10 21:10:19: Launching app
Error while waiting for the device: The emulator process for AVD Nexus_5_API_22 was killed.

有什么想法吗?

更新 这是模拟器日志:

Executing tasks: [:app:assembleDebug]
Emulator: libGL error: unable to load driver: i965_dri.so
Emulator: libGL error: driver pointer missing
Emulator: libGL error: failed to load driver: i965
Emulator: libGL error: unable to load driver: i965_dri.so
Emulator: libGL error: driver pointer missing
Emulator: libGL error: failed to load driver: i965
Emulator: libGL error: unable to load driver: swrast_dri.so
Emulator: libGL error: failed to load driver: swrast
Emulator: X Error of failed request:  BadValue (integer parameter out of range for operation)
Emulator: Major opcode of failed request:  155 (GLX)
Emulator: Minor opcode of failed request:  24 (X_GLXCreateNewContext)
Emulator: Value in failed request:  0x0
Emulator: Serial number of failed request:  39
Emulator: Current serial number in output stream:  40
Emulator: Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)

更新 2

我在不同的 ubuntu 17.10 计算机上遇到了同样的问题。我使用this教程进行安装

【问题讨论】:

标签: android android-studio


【解决方案1】:

libstdc++ 的路径在 Ubuntu 17.10 中已更改。请尝试以下操作:

$ cd ~/Android/Sdk/emulator/lib64/libstdc++
$ mv libstdc++.so.6 libstdc++.so.6.bak
$ ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 libstdc++.so.6

您现在应该可以在 Android Studio 中启动模拟器了。

【讨论】:

    【解决方案2】:

    在带有 Android Studio 3.01 的 Ubuntu 17.10 上。我将库文件夹 ~/Android/Sdk/emulator/lib64/lib/libstdc++ 重命名为 libstc++.OLD 并且工作正常。

    【讨论】:

      猜你喜欢
      • 2021-12-27
      • 2021-05-21
      • 2021-03-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多