Android emulator - unable to load driver

后端 未结 4 1188
耶瑟儿~
耶瑟儿~ 2020-12-10 05:16

Running on Ubuntu, I\'m getting this error:

Cannot launch AVD in emulator.
Output:
libGL error: unable to load driver: i965_dri.so
libGL error: driver pointe         


        
相关标签:
4条回答
  • 2020-12-10 05:49

    The issue is related to libstdc++.so.6 go to Android SDK and can be resolved with the following command:

    cd ~/...../sdk/tools/lib64/libstdc++
    mv libstdc++.so.6 libstdc++.so.6_OLD
    ln -sf /usr/lib/x86_64-linux-gnu/libstdc++.so.6 libstdc++.so.6
    

    Credit: https://code.google.com/p/android/issues/detail?id=197254#c43

    0 讨论(0)
  • 2020-12-10 05:50

    I've just face the same error, and simply deleting $ANDROID_HOME/tools/lib64/libstdc++/* worked for me. libstdc++ version shipped with 16.10 (6.0.22) is greater than the one shipped with the sdk tools (6.0.18), and I suppose it creates conflicts with other libraries.

    0 讨论(0)
  • 2020-12-10 05:52

    I had been struggling with this pretty much, the answer is correct, it's just the application method that took me time to figure out :

    (as Root) I have run : locate libstdc++.so.6

    Then with the result list of the current lib WITH VERSION and LOCATION I applied the mv/rm on the ones shipped with Android SDK (~/Android/Sdk/emulator/lib/libstdc++/libstdc++.so.6 in my case), and then made a link from the system ones (/usr/lib/i386-linux-gnu/libstdc++.so.6 OR /usr/lib/x86_64-linux-gnu/libstdc++.so.6 OR /usr/lib32/libstdc++.so.6 depend on your system)

    0 讨论(0)
  • 2020-12-10 06:10

    Had the same issue and my fix was to set the following env variable:

    export ANDROID_EMULATOR_USE_SYSTEM_LIBS=1

    In my case I put it in ~/.bashrc. With that being sent I start emulator as usual, i.e. from command line:

    $ emulator -avd Nexus_4_API_23

    Looks like it's a common well-known problem tracked in Android bug tracker: https://code.google.com/p/android/issues/detail?id=197254

    0 讨论(0)
提交回复
热议问题