author
Pengdonglin
[Email protected]
Platform
Ubuntu14.04 64
Androidstudio 2.3.3
phenomena
After creating the simulator, click Start, the emulator interface just came out and it's gone.
Solve
Because it is clicked on in the graphical interface to start, do not see any error log, so we need to use the command line to start the emulator way, so that the error message will be printed out.
1. Check the name of the simulator we created:
From the See emulator name is: 32_qvga_adp2_api_25
2. Find the emulator in Android SDK
For my machine, the simulator is stored in the /home/pengdonglin/disk_ext/android_latest/android_sdk/emulator
3. Command line Run simulator
$./emulator64-x86-AVD 32_qvga_adp2_api_25./emulator64-x86:/usr/lib/x86_64-linux-gnu/libqt5core.so.5: No version information available (required by./emulator64-x86)./emulator64-x86:/usr/lib/x86_64-linux-gnu/libqt5core.so.5: No version information available (required by./emulator64-x86)./emulator64-x86:/usr/lib/x86_64-linux-gnu/libqt5widgets.so.5: No version information available (required by./emulator64-x86)./emulator64-x86:/usr/lib/x86_64-linux-gnu/libqt5gui.so.5: No version information available (required by./emulator64-x86)./emulator64-x86:relocation error:./emulator64-x86:symbol Qt_version_tag, version qt_5.7Not definedinch fileLibqt5core.so.5With link TimeReference
after searching the Internet, the following solutions are available:
Download the Qt5.7 Code (qt-opensource-linux-x64-5.7.0.run) from the web and install it, add the path to the environment variable that contains the library in the Qt5.7, and mine is:
Export ld_library_path=/home/pengdonglin/qt5.7.0/5.7/gcc_64/lib: $LD _library_path
Add the above configuration to the. BASHRC, and then take it into effect.
Run again and get the following error message:
$./emulator64-x86-AVD 32_qvga_adp2_api_25SH:1: Glxinfo:not foundfailed to open lib64egl_translator: [Lib64EGL_translator.so:cannot Open sharedObject file: No Suchfileor Directory]gles2_dispatch_init:could not load lib64gles_v2_translator [Lib64GLES_V2_translator.so:cannot Open SharedObject file: No Suchfileor directory]emulator:error:could not load opengles emulation library [Lib64openglrender]: LIB64OPENGLRENDER.SO:CA Nnot Open SharedObject file: No Suchfileor Directoryemulator:ERROR:Could not initialize opengles emulation, use'-gpu off'To disable it.
hint missing the above library, in fact these libraries are in the directory where the emulator is located under the lib64, the same path is added to the environment variables:
Export ld_library_path= $LD _library_path:/home/pengdonglin/disk_ext/android_latest/android_sdk/emulator/ Lib64
after the entry into force, run again, and get the following error message:
$./emulator64-x86-avd 32_qvga_adp2_api_25sh12. x pbuffer! 2string! '-gpu off' to disable it.
There are two ways to solve this problem:
The first type: Add -gpu off after the command line, as prompted
The second type: Modify the simulator configuration we created, using software to simulate gles:
As shown, select software-gles 2.0
Run again, found to be able to run successfully, and did not report any errors, and at this point in the graphical interface to click the Start button can normally start the simulator.
Finish.
Solve the problem of starting emulator flash in Androidstudio on Ubuntu