Android studio 2 ...のエミュレータの問題.
エミュレータでAVDを起動できません
Output:
libGL error: failed to load driver: nouveau
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
X Error of failed request: GLXBadContext
Major opcode of failed request: 155 (GLX)
Minor opcode of failed request: 6 (X_GLXIsDirect)
Serial number of failed request: 47
Current serial number in output stream: 46
libGL error: unable to load driver: nouveau_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: nouveau
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
X Error of failed request: GLXBadContext
Major opcode of failed request: 155 (GLX)
Minor opcode of failed request: 6 (X_GLXIsDirect)
Serial number of failed request: 47
Current serial number in output stream: 46
libGL error: unable to load driver: nouveau_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: nouveau
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)
emulator: WARNING: VM heap size set below hardware specified minimum of 384MB
Major opcode of failed request: 155 (GLX)
emulator: WARNING: Setting VM heap size to 384MB
Minor opcode of failed request: 24 (X_GLXCreateNewContext)
Value in failed request: 0x0
Serial number of failed request: 33
Current serial number in output stream: 34
QObject::~QObject: Timers cannot be stopped from another thread
これはコンソールにあります:
そして、その答えに対してコマンドを実行すると、bash: cd: /Android-sdk-linux_x86/tools/lib64/libstdc++: No such file or directory
みんな助けてください...
Sdkパスの問題.....
$ Android_HOMEではなくSdkパスにリンク
cd $Android_HOME/Android-sdk-linux_x86/tools/lib64/libstdc++
mv libstdc++.so.6 libstdc++.so.6.bak
ln -s /usr/lib64/libstdc++.so.6 $Android_HOME/Android-sdk-linux_x86/tools/lib64/libstdc++
私の場合、そのようなパスを使用して
1. cd Desktop/blackgoogle/Android/Sdk/tools/lib64/libstdc++
2. mv libstdc++.so.6 libstdc++.so.6.bak
3. cd
4. ln -s /usr/lib64/libstdc++.so.6 Desktop/blackgoogle/Android/Sdk/tools/lib64/libstdc++
注:-pathOfSDK/tools/lib64/libstdc ++
の重複Android studio でエミュレーターを起動できません
このエラーを解決するには、以下の3つのコマンドを使用します。
mv ~/Android/Sdk/tools/lib64/libstdc++/libstdc++.so.6{,.bak}
mv ~/Android/Sdk/tools/lib64/libstdc++/libstdc++.so.6.0.18{,.bak}
ln -s /usr/lib/libstdc++.so ~/Android/Sdk/tools/lib64/libstdc++/