cocos2d 移植android 5.0系統上黑屏而不閃退

android 5.0系統 ,cocos2dx 3.2 ndk :android-ndk-r8e 

android 項目中的 Application.mk 文件

APP_STL := c++_static
改爲:

APP_STL := gnustl_static


原因:詳細請參考http://zengrong.net/post/2242.htm


在調用jni過程中也出現閃退的現象,

使用 CallStaticIntMethod 函數返回值時出現閃退 ,應改爲CallStaticVoidMethod

CallStaticIntMethod >> CallStaticVoidMethod

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章