GLDefaultVales line:193 error [cocos2d-x 2.0.2]

I have set the setDesignResolutionSize.
When you start the Android application,an error dialog will appear.

CCDirector.cpp function:setGLDefaultVales line:193

jni/hellocpp/main.cpp

void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thiz, jint w, jint h)
{
if (!CCDirector::sharedDirector()->getOpenGLView())
{
CCEGLView view = CCEGLView::sharedOpenGLView;
view~~>setFrameSize;
view~~>setDesignResolutionSize;
AppDelegate
pAppDelegate = new AppDelegate();
CCApplication::sharedApplication()->run();
}
else
{
ccDrawInit();
ccGLInvalidateStateCache();

CCShaderCache::sharedShaderCache()->reloadDefaultShaders();
CCTextureCache::reloadAllTextures();
CCNotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
CCDirector::sharedDirector()->setGLDefaultValues();
}
}

Please invoke setDesignResolutionSize() in AppDelegate.cpp.

I was able to set. Thank you very much.

CCEGLView::sharedOpenGLView()->setDesignResolutionSize(320, 480, kResolutionExactFit);