Error libGL.so: cannot open shared object file using Android emulator

后端 未结 6 1620
滥情空心
滥情空心 2021-02-01 02:23

I was trying to run android emulator in Ubuntu 12.04(64-bit). But, I got the following errors.

Starting emulator for AVD \'emulatr\'
Failed to load libGL.so
erro         


        
6条回答
  •  北海茫月
    2021-02-01 03:12

    You don't need the development files for libgl1-mesa, so instead you should/could install libgl1-mesa-dri instead of libgl1-mesa-dev as suggested by others. This saves you a couple of MB of unnecessary files.

    Furthermore, the Android applications are either 32 bit or 64 bit.

    For a or a 32 bit Ubuntu you require the 32 bit SDK (as 64 bit does not work):

    sudo apt-get install libgl1-mesa-dri
    

    Same goes for a 64-bit Ubuntu with a 64-bit SDK.

    But for a 64 bit Ubuntu in combination with a 32 bit SDK, you need to specify that you require the 32 bit version of the package:

    sudo apt-get install libgl1-mesa-dri:i386
    

提交回复
热议问题