LoginSignup
0
0

More than 5 years have passed since last update.

Ubuntuに新しくAndroid開発環境構築しようとしてハマった

Posted at

env

  • Ubuntu 17.04
  • Intellij 2017.2

おきたこと

  • エミュレータ起動しようとしたのにしない
16:52   Error Opening Emulator
            libGL error: unable to load driver: i965_dri.so
            libGL error: driver pointer missing
            libGL error: failed to load driver: i965
            libGL error: unable to load driver: i965_dri.so
            libGL error: driver pointer missing
            libGL error: failed to load driver: i965
            libGL error: unable to load driver: swrast_dri.so
            libGL error: failed to load driver: swrast
            X Error of failed request:  BadValue (integer parameter out of range for operation)
            Major opcode of failed request:  155 (GLX)
            Minor opcode of failed request:  24 (X_GLXCreateNewContext)
            Value in failed request:  0x0
            Serial number of failed request:  39
            Current serial number in output stream:  40

ググってわかったこと

ln -sf /usr/lib32/libstdc++.so.6 ~/Android/sdk/tools/lib64/libstdc++/libstdc++.so.6

みたいにしようね

こまったこと

~/Android/sdk/tools/lib64/libstdc++ ディレクトリがそもそもない

解決法

~/Android/Sdk/emulator/lib/libstdc++ ディレクトリがあったのでそこにsymlinkを貼る

$ cd ~/Android/Sdk/emulator/lib/libstdc++
$ mv libstdc++.so.6 libstdc++.so.6_
$ ln -s /usr/lib32/libstdc++.so.6 .

感想

バージョンアップで何か変わったんかな。
ようわからんけどとりまこれで動いた気がする。

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0