this is my Question
http://discuss.cocos2d-x.org/t/cocostudio-export-data-use-on-cocos2dx-3-1/15534
I received answer
http://discuss.cocos2d-x.org/t/android-stencil-buffer-not-enabled/11089
on page,
So you can refer to
cocos2d-x/samples/Cpp/TestCpp/proj.android/src/org/cocos2dx/testcpp/TestCpp.java
and i go to
C:\Users\pineoc\Desktop\cocos2d-x-3.1.1\tests\cpp-tests\proj.android\src\org\cocos2dx\cpp_tests
on code(AppActivity.java),
ckage org.cocos2dx.cpp_tests; import org.cocos2dx.lib.Cocos2dxActivity; import org.cocos2dx.lib.Cocos2dxGLSurfaceView; public class AppActivity extends Cocos2dxActivity { public Cocos2dxGLSurfaceView onCreateView() { Cocos2dxGLSurfaceView glSurfaceView = new Cocos2dxGLSurfaceView(this); // TestCpp should create stencil buffer glSurfaceView.setEGLConfigChooser(5, 6, 5, 0, 16, 8); return glSurfaceView; } }
this code copy to my project folder android
C:\Users\pineoc\cocos2d-x-3.1.1\\proj.android\src\org\cocos2dx\cpp\AppActivity.java
add code
import org.cocos2dx.lib.Cocos2dxGLSurfaceView;
public Cocos2dxGLSurfaceView onCreateView() { Cocos2dxGLSurfaceView glSurfaceView = new Cocos2dxGLSurfaceView(this); // TestCpp should create stencil buffer glSurfaceView.setEGLConfigChooser(5, 6, 5, 0, 16, 8); return glSurfaceView; }
and you will see that all okay
success!
good for coding!