Problem with cocos2d::ui: ScrollView

Hi,
i have finished my first game using cocos2d-x 3.0 for android, and it run very good, but when i run it on the nexus 5, the scene which contain a cocos2d::ui::ScrollView doesn’t run good ,
it’s white and empty.
I see this message on the logcat ’ Stencil buffer is not enabled’.
Please help me to fix that.
thanks

Open appActivity.java in your Android application and override the function onCreateView():

public Cocos2dxGLSurfaceView onCreateView() { 
       Cocos2dxGLSurfaceView glSurfaceView = new Cocos2dxGLSurfaceView(this); 
       glSurfaceView.setEGLConfigChooser(5, 6, 5, 0, 16, 8); 
        return glSurfaceView; 
   } 

Build & Run, it will work now.

1 Like

thanks, it works now :smile:.