libGL error: MESA-LOADER: failed to open vmwgfx (search paths /usr/lib/x86_64-linux-gnu/dri)

  • Post author:
  • Post category:linux


使用emulator

-use-system-libs 命令

Using the libstdc++.so.6 that is available in your system instead of the one bundled with the android sdk solves this issue.

  • The emulator has a switch

    -use-system-libs

    to do this.


    ~/Android/Sdk/tools/emulator -avd Nexus_5_API_23 -use-system-libs

  • Alternatively you can set the

    ANDROID_EMULATOR_USE_SYSTEM_LIBS

    environment variable to

    1

    for your user/system. This has the benefit of making sure that the emulator will work even if you launched it from within Android Studio.



版权声明:本文为xiaopangcame原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。