原文出處:http://www.learnopengles.com/android-emulator-now-supports-native-opengl-es2-0/
我在默認情況下從cocos2dx中創建的android項目會在模擬器中報錯,說是不支持gles2。真機測試則沒有問題。
後來在網上找到了解決辦法:
1、編輯模擬器,添加‘GPU Emulation’項。
2、找到configurationInfo.reqGlEsVersion >= 0×20000代碼,在後面添加|| Build.FINGERPRINT.startsWith(“generic”)語句。
已經測試可用,問題解決。