问题
I just started in Android Studio to display a map using mapbox, and when I launch the emulator, the map is not displayed but only the mapbox logo. And I have this error:
12:22 Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glUniformMatrix4fv:3400 error 0x502
12:22 Emulator: android/android-emugl/host/libs/Translator/GLES_V2/
12:22 Emulator: GLESv2Imp.cpp:glUniformMatrix4fv:3400 error 0x502
12:22 Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glUniform2fv:3303 error 0x502
12:22 Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glUniform1f:3268 error 0x502
12:22 Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glUniform1i:3282 error 0x502
12:22 Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glUniform1f:3268 error 0x502
12:22 Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glUniform4fv:3359 error 0x502
12:22 Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glUniform1f:3268 error 0x502
12:22 Emulator: android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glUniform1i:3282 error 0x502
Screen error
I helped myself to this: Emulator: glClear:466 GL err 0x502 That is, I reinstall Android Studio totally, and then I manually reinstall HAXM and Android Emulator in the SDK Tool. I also launched in Android Studio administrator mode but without success.
Thanks for your help
回答1:
I had the same problem as you. If you take a look at the other answer in that thread (https://stackoverflow.com/a/48084829/3557075) you'll see that one solution is to change the configuration on the virtual devices in the emulator under "Emulated Performance - Graphics".
This seems to fix the problem for me, despite the fact that the app lags as hell in the emulator.
回答2:
Try Creating An AVD With Application Level 25+. & While Creating AVD Select The Graphics Type As - Automatic So that AVD Can Automatically Detect Ur Graphics Hardware.
来源:https://stackoverflow.com/questions/48840825/error-0x502-android-emulator