Every time I run my program, Android studio gives me these errors:
每次运行我的程序,Android studio都会给我这些错误:
10-26 16:45:51.020 5758-5781/com.example.mm.myapplicationW/EGL_emulation:eglSurfaceAttrib not implemented
10-26 16:45:51.020 5758-5781/com.example.mm.myapplication W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0x7f3f88dab6c0, error=EGL_SUCCESS
What is the reason for this? The program works on the emulator but I get these errors every time I click on a button
原因是什么?程序在模拟器上运行,但是每次我点击一个按钮,我就会得到这些错误。
2 个解决方案
#1
1
It might be emulator not having enough memory to load all of the startup data.
可能是模拟器没有足够的内存来加载所有的启动数据。
See https://teamtreehouse.com/community/i-am-running-my-emulator-and-receiving-this-error-message
参见https://teamtreehouse.com/community/i-am-running-my-emulator-and-receiving-this-error-message
#2
1
- Check for your functions writing upper and lower cases
- 检查你的函数,写出上下的情况。
- Check for the scopes
- 检查的范围
- If you have buttons check for its on click value
- 如果你有按钮,检查它的点击值。
#1
1
It might be emulator not having enough memory to load all of the startup data.
可能是模拟器没有足够的内存来加载所有的启动数据。
See https://teamtreehouse.com/community/i-am-running-my-emulator-and-receiving-this-error-message
参见https://teamtreehouse.com/community/i-am-running-my-emulator-and-receiving-this-error-message
#2
1
- Check for your functions writing upper and lower cases
- 检查你的函数,写出上下的情况。
- Check for the scopes
- 检查的范围
- If you have buttons check for its on click value
- 如果你有按钮,检查它的点击值。