操作系统是win10,android studio 2.3 ,模拟器是studio自带的。
本人新手,写了第一个hello world程序,运行时模拟器可以显示,也可以显示hello world程序。但是会报错。下面是报错的日志:
E/libEGL(1296): load_driver(/system/lib/egl/libGLES_emulation.so): dlopen failed: library "/system/lib/egl/libGLES_emulation.so" not found
E/perfprofd(1317): unable to open configuration file /data/data/com.google.android.gms/files/perfprofd.conf
E/EmulatedCamera_HotplugThread(1305): createFileIfNotExists: Could not create file '/data/misc/media/emulator.camera.hotplug.0', error: 'Permission denied' (13)
E/EmulatedCamera_HotplugThread(1305): createFileIfNotExists: Could not create file '/data/misc/media/emulator.camera.hotplug.1', error: 'Permission denied' (13)
E/cutils-trace(1305): Error opening trace file: Permission denied (13)
E/CameraService(1305): setUpVendorTags: Vendor tag operations not fully defined. Ignoring definitions.
E/cutils-trace(1304): Error opening trace file: Permission denied (13)
E/audio_hw_generic(1304): Error opening input stream format 1, channel_mask 0010, sample_rate 16000
E/AudioFlinger(1304): int android::load_audio_interface(const char *, audio_hw_device_t **) couldn't load audio hw module audio.r_submix (No such file or directory)
E/AudioFlinger(1304): loadHwModule() error -2 loading module r_submix
E/RadioService(1304): couldn't load radio module radio.primary (No such file or directory)
E/SoundTriggerHwService(1304): couldn't load sound trigger module sound_trigger.primary (No such file or directory)
E/SurfaceFlinger(1296): hwcomposer module not found
E/cutils-trace(1296): Error opening trace file: Permission denied (13)
E/SurfaceFlinger(1296): ro.sf.lcd_density must be defined as a build property
E/libEGL(1370): load_driver(/system/lib/egl/libGLES_emulation.so): dlopen failed: library "/system/lib/egl/libGLES_emulation.so" not found
E/cutils-trace(1370): Error opening trace file: Permission denied (13)
E/memtrack(1303): Couldn't load memtrack module (No such file or directory)
E/android.os.Debug(1303): failed to load memtrack module: -2
E/Typeface(1303): Error mapping font file /system/fonts/DroidSansFallback.ttf
E/libEGL(1303): load_driver(/system/lib/egl/libGLES_emulation.so): dlopen failed: library "/system/lib/egl/libGLES_emulation.so" not found
E/Hyphenator(1303): error loading hyphenation /system/usr/hyphen-data/hyph-as.hyb
E/Hyphenator(1303): java.io.FileNotFoundException: /system/usr/hyphen-data/hyph-as.hyb: open failed: ENOENT (No such file or directory)
1.Permission denied (13) 访问权限不够!
2.dlopen failed: library "/system/lib/egl/libGLES_emulation.so" not found 相关引用的插件没包含。
能运行就先不必理会这些细节。
"/system/lib/egl/libGLES_emulation.so" not found 看看你这个包是不是没有这个so文件 百度下载这个文件,放入这个文件夹,build path 一下就可以正常运行了。