我在我的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教程进行安装
答案 0 :(得分:16)
Ubuntu 17.10中libstdc++
的路径发生了变化。请尝试以下方法:
$ 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中启动模拟器。
答案 1 :(得分:3)
使用Android Studio 3.01在Ubuntu 17.10上。我将库文件夹〜/ Android / Sdk / emulator / lib64 / lib / libstdc ++重命名为libstc ++。OLD并且工作正常。