Solve "Failed to load OpenGLES emulation library: DLL failed to load!" for android emulator

There was a problem starting Android Emulator. The error I received when starting the Android emulator by running the emulator-arm @AVD_name

Could not load OpenGLES emulation library:Could not load DLL! .

Can anyone help me solve this problem.

+5
source share
4 answers

I finally got how to run Android Emulator. I think the problem on Windows is that the android emulator when executing points in the sdk\tools\ directory instead of sdk\tools\lib , as stated in the Android-open Project Tracker .

What you need to do is:

  • First, copy all files starting with lib and having the dll extension from the sdl\tools\lib directory to the sdk\tools\ directory.
  • If you still cannot get the emulator to work after copying, put the -gpu off option on the command line when you run emulator-arm @AVD_name .

Having done these two things, the Android Android emulator started for me.

+8
source

There is a simpler solution: use "emulator" instead of "emulator-arm".

'emulator' is used to perform several checks and change the library loading path to, among other things, find GPU emulation libraries.

After that, the emulator-arm emulator is called by the emulator. If you want to call it directly, you will have to change your PATH (or LD_LIBRARY_PATH) variable before doing this. In addition, copying libraries to sdk / tools / will have the same effect on Windows (but not on other platforms). But all these hackers are not needed when calling the "emulator".

If, for some reason, calling the "emulator" does not work, explain why. I am curious why you will need to call "emulator-arm" directly.

+3
source

I use the BAT script below to run the Android emulator on a Windows system.

 emulator_start.bat <AVD_FILENAME_WITHOUT_EXTENSION> 

The contents of the emulator_start.bat file:

 @echo off set AVD_FILENAME_WITHOUT_EXTENSION=%1 title Android Emulator %AVD_FILENAME_WITHOUT_EXTENSION% set PATH=%PATH%;%ANDROID_HOME%\tools;%ANDROID_HOME%\tools\lib;%ANDROID_HOME%\platform-tools rem set EMULATOR_CMD=emulator set EMULATOR_CMD=emulator-arm %EMULATOR_CMD% -avd %AVD_FILENAME_WITHOUT_EXTENSION% -gpu on -no-boot-anim -wipe-data 
+1
source

From the Android Studio menu, select:

Tools โ†’ Android โ†’ AVD Manager

It opens a list of available virtual devices. Choose the one you come across. Click on the pencil icon (Change).

Click the "Show advanced settings" button.

Uncheck the "Use master GPU" checkbox in the "Performance Emulation" section.

It worked for me.

My version of Android Studio is 1.5.1.

+1
source

Source: https://habr.com/ru/post/1208655/


All Articles