SDKBox Vungle Crash on Android

Hi,

I already integrate SDKBox Vungle on Android, but it keeps crashing when I called the function to show the ads. here is the crash log:

07-03 17:03:06.760    6270-6270/com.test.test.android I/SELinux﹕ Function: selinux_android_load_priority [0], There is no sepolicy file.
07-03 17:03:06.780    6270-6270/com.test.test.android I/SELinux﹕ Function: selinux_android_load_priority , spota verifySig and checkHash pass. priority version is VE=SEPF_SM-N900_4.4.2_0040
07-03 17:03:06.780    6270-6270/com.test.test.android I/SELinux﹕ selinux_android_seapp_context_reload: seapp_contexts file is loaded from /data/security/spota/seapp_contexts
07-03 17:03:06.785    6270-6270/com.test.test.android E/dalvikvm﹕ >>>>> Normal User
07-03 17:03:06.785    6270-6270/com.test.test.android E/dalvikvm﹕ >>>>> com.test.test.android [ userId:0 | appId:10428 ]
07-03 17:03:06.790    6270-6270/com.test.test.android D/dalvikvm﹕ Late-enabling CheckJNI
07-03 17:03:07.220    6270-6270/com.test.test.android W/ApplicationPackageManager﹕ getCSCPackageItemText()
07-03 17:03:07.220    6270-6270/com.test.test.android I/PersonaManager﹕ getPersonaService() name persona_policy
07-03 17:03:07.335    6270-6270/com.test.test.android W/ApplicationPackageManager﹕ getCSCPackageItemText()
07-03 17:03:07.355    6270-6270/com.test.test.android W/ApplicationPackageManager﹕ getCSCPackageItemText()
07-03 17:03:07.355    6270-6316/com.test.test.android I/System.out﹕ Thread-2041(ApacheHTTPLog):Reading from variable values from setDefaultValuesToVariables
07-03 17:03:07.360    6270-6321/com.test.test.android I/System.out﹕ Thread-2044(ApacheHTTPLog):isShipBuild true
07-03 17:03:07.360    6270-6321/com.test.test.android I/System.out﹕ Thread-2044(ApacheHTTPLog):SmartBonding Enabling is false, SHIP_BUILD is true, log to file is false, DBG is false
07-03 17:03:07.365    6270-6316/com.test.test.android I/System.out﹕ Thread-2041(ApacheHTTPLog):isShipBuild true
07-03 17:03:07.365    6270-6316/com.test.test.android I/System.out﹕ Thread-2041(ApacheHTTPLog):SmartBonding Enabling is false, SHIP_BUILD is true, log to file is false, DBG is false
07-03 17:03:07.380    6270-6270/com.test.test.android D/dalvikvm﹕ Trying to load lib /data/app-lib/com.test.test.android-12/libtesttest.so 0x428ba2c0
07-03 17:03:07.560    6270-6296/com.test.test.android I/System.out﹕ Thread-2025(HTTPLog):isShipBuild true
07-03 17:03:07.560    6270-6296/com.test.test.android I/System.out﹕ Thread-2025(HTTPLog):SmartBonding Enabling is false, SHIP_BUILD is true, log to file is false, DBG is false
07-03 17:03:07.615    6270-6270/com.test.test.android D/dalvikvm﹕ Added shared lib /data/app-lib/com.test.test.android-12/libtesttest.so 0x428ba2c0
07-03 17:03:07.615    6270-6270/com.test.test.android D/JniHelper﹕ JniHelper::setJavaVM(0x416901f8), pthread_self() = 1074680148
07-03 17:03:07.615    6270-6270/com.test.test.android D/main﹕ cocos_android_app_init
07-03 17:03:07.665    6270-6270/com.test.test.android D/Cocos2dxActivity﹕ model=SM-N900
07-03 17:03:07.665    6270-6270/com.test.test.android D/Cocos2dxActivity﹕ product=ha3gxx
07-03 17:03:07.665    6270-6270/com.test.test.android D/Cocos2dxActivity﹕ isEmulator=false
07-03 17:03:07.675    6270-6270/com.test.test.android D/dalvikvm﹕ VFY: replacing opcode 0x1c at 0x001e
07-03 17:03:07.725    6270-6270/com.test.test.android W/ApplicationPackageManager﹕ getCSCPackageItemText()
07-03 17:03:07.830    6270-6270/com.test.test.android I/﹕ PLATFORM VERSION : JB-MR-2
07-03 17:03:07.850    6270-6270/com.test.test.android D/mali_winsys﹕ new_window_surface returns 0x3000
07-03 17:03:07.870    6270-6270/com.test.test.android D/OpenGLRenderer﹕ Enabling debug mode 0
07-03 17:03:07.910    6270-6365/com.test.test.android D/mali_winsys﹕ new_window_surface returns 0x3000
07-03 17:03:07.935    6270-6365/com.test.test.android D/cocos2d-x debug info﹕ {
    gl.supports_vertex_array_object: true
    gl.supports_BGRA8888: false
    gl.supports_ATITC: false
    gl.supports_S3TC: false
    cocos2d.x.version: cocos2d-x-3.7beta0
    gl.supports_discard_framebuffer: true
    cocos2d.x.compiled_with_profiler: false
    gl.supports_PVRTC: false
    cocos2d.x.build_type: DEBUG
    gl.renderer: Mali-T628
    gl.supports_ETC1: true
    cocos2d.x.compiled_with_gl_state_cache: true
    gl.version: OpenGL ES 3.0
    gl.supports_NPOT: true
    gl.max_texture_units: 32
    gl.vendor: ARM
    gl.max_texture_size: 8192
    }
07-03 17:03:07.990    6270-6365/com.test.test.android D/CSC﹕ caching assets/sdkbox_config.json
07-03 17:03:07.995    6270-6365/com.test.test.android D/PluginFactory﹕ Java class name of plugin PluginVungle is : org/cocos2dx/plugin/PluginVungle
07-03 17:03:07.995    6270-6365/com.test.test.android I/PluginWrapper﹕ class name : ----org/cocos2dx/plugin/PluginVungle----
07-03 17:03:08.045    6270-6365/com.test.test.android D/dalvikvm﹕ GC_FOR_ALLOC freed 1969K, 14% free 17867K/20660K, paused 25ms, total 25ms
07-03 17:03:08.655    6270-6477/com.test.test.android D/dalvikvm﹕ GC_FOR_ALLOC freed 1790K, 13% free 18126K/20740K, paused 20ms, total 20ms
07-03 17:03:08.705    6270-6365/com.test.test.android D/CocosPlayClient.cpp﹕ isEnabled = 0
07-03 17:03:08.705    6270-6365/com.test.test.android D/CocosPlayClient.cpp﹕ isDemo = 0
07-03 17:03:08.705    6270-6365/com.test.test.android D/CocosPlayClient.cpp﹕ isNotifyFileLoadedEnabled = 0
07-03 17:03:08.935    6270-6365/com.test.test.android D/cocos2d-x debug info﹕ create rendererRecreatedListener for GLProgramState
07-03 17:03:08.935    6270-6365/com.test.test.android D/cocos2d-x debug info﹕ create rendererRecreatedListener for GLProgramState
07-03 17:03:10.750    6270-6735/com.test.test.android D/cocos2d-x debug info﹕ VUNGLE CacheAvailable CALLED
07-03 17:03:10.805    6270-6480/com.test.test.android D/dalvikvm﹕ GC_FOR_ALLOC freed 1914K, 14% free 18262K/21000K, paused 22ms, total 22ms
07-03 17:03:10.860    6270-6480/com.test.test.android W/VungleDatabase﹕ unable to calculate ad duration because view end millis was null
07-03 17:03:11.295    6270-6365/com.test.test.android D/cocos2d﹕ android build version:19
07-03 17:03:11.300    6270-6363/com.test.test.android V/MediaPlayer﹕ decode(104, 1568972, 38592)
07-03 17:03:12.620    6270-6978/com.test.test.android W/ApplicationPackageManager﹕ getCSCPackageItemText()
07-03 17:03:18.125    6270-6365/com.test.test.android V/MediaPlayer-JNI﹕ native_setup
07-03 17:03:18.125    6270-6365/com.test.test.android V/MediaPlayer﹕ constructor
07-03 17:03:18.125    6270-6365/com.test.test.android V/MediaPlayer﹕ setListener
07-03 17:03:18.125    6270-6365/com.test.test.android V/MediaPlayer-JNI﹕ setDataSourceFD: fd 110
07-03 17:03:18.125    6270-6365/com.test.test.android V/MediaPlayer﹕ setDataSource(110, 747772, 806400)
07-03 17:03:18.130    6270-6290/com.test.test.android V/MediaPlayer﹕ message received msg=8, ext1=0, ext2=0
07-03 17:03:18.130    6270-6290/com.test.test.android V/MediaPlayer﹕ notify(8, 0, 0) callback on disconnected mediaplayer
07-03 17:03:18.150    6270-6365/com.test.test.android V/MediaPlayer﹕ setVideoSurfaceTexture
07-03 17:03:18.150    6270-6365/com.test.test.android V/MediaPlayer﹕ prepare
07-03 17:03:18.155    6270-6289/com.test.test.android V/MediaPlayer﹕ message received msg=200, ext1=973, ext2=0
07-03 17:03:18.155    6270-6289/com.test.test.android W/MediaPlayer﹕ info/warning (973, 0)
07-03 17:03:18.155    6270-6289/com.test.test.android V/MediaPlayer﹕ callback application
07-03 17:03:18.155    6270-6289/com.test.test.android V/MediaPlayer﹕ back from callback
07-03 17:03:18.155    6270-6290/com.test.test.android V/MediaPlayer﹕ message received msg=5, ext1=0, ext2=0
07-03 17:03:18.155    6270-6290/com.test.test.android V/MediaPlayer﹕ New video size 0 x 0
07-03 17:03:18.155    6270-6290/com.test.test.android V/MediaPlayer﹕ callback application
07-03 17:03:18.155    6270-6290/com.test.test.android V/MediaPlayer﹕ back from callback
07-03 17:03:18.155    6270-6270/com.test.test.android I/MediaPlayer﹕ Don't send intent. msg.arg1 = 0, msg.arg2 = 0
07-03 17:03:18.160    6270-6289/com.test.test.android V/MediaPlayer﹕ message received msg=1, ext1=0, ext2=0
07-03 17:03:18.160    6270-6289/com.test.test.android V/MediaPlayer﹕ prepared
07-03 17:03:18.160    6270-6289/com.test.test.android V/MediaPlayer﹕ signal application thread
07-03 17:03:18.160    6270-6289/com.test.test.android V/MediaPlayer﹕ callback application
07-03 17:03:18.160    6270-6289/com.test.test.android V/MediaPlayer﹕ back from callback
07-03 17:03:18.160    6270-6365/com.test.test.android V/MediaPlayer﹕ prepare complete - status=0
07-03 17:03:18.160    6270-6365/com.test.test.android V/MediaPlayer-JNI﹕ setVolume: left 0.500000  right 0.500000
07-03 17:03:18.160    6270-6365/com.test.test.android V/MediaPlayer﹕ MediaPlayer::setVolume(0.500000, 0.500000)
07-03 17:03:18.160    6270-6365/com.test.test.android V/MediaPlayer﹕ isPlaying: 0
07-03 17:03:18.160    6270-6365/com.test.test.android V/MediaPlayer-JNI﹕ isPlaying: 0
07-03 17:03:18.160    6270-6365/com.test.test.android V/MediaPlayer-JNI﹕ start
07-03 17:03:18.160    6270-6365/com.test.test.android V/MediaPlayer﹕ start
07-03 17:03:18.160    6270-6270/com.test.test.android E/MediaPlayer﹕ Should have subtitle controller already set
07-03 17:03:18.165    6270-6290/com.test.test.android V/MediaPlayer﹕ message received msg=6, ext1=0, ext2=0
07-03 17:03:18.165    6270-6365/com.test.test.android V/MediaPlayer-JNI﹕ setLooping: 1
07-03 17:03:18.165    6270-6365/com.test.test.android V/MediaPlayer﹕ MediaPlayer::setLooping
07-03 17:03:18.165    6270-6365/com.test.test.android D/cocos2d-x debug info﹕ create rendererRecreatedListener for GLProgramState
07-03 17:03:18.165    6270-6290/com.test.test.android V/MediaPlayer﹕ Received MEDIA_STARTED
07-03 17:03:18.165    6270-6290/com.test.test.android V/MediaPlayer﹕ callback application
07-03 17:03:18.165    6270-6290/com.test.test.android V/MediaPlayer﹕ back from callback
07-03 17:03:18.165    6270-6270/com.test.test.android V/MediaPlayer-JNI﹕ getCurrentPosition: 66 (msec)
07-03 17:03:18.165    6270-6270/com.test.test.android V/MediaPlayer﹕ isPlaying: 1
07-03 17:03:18.165    6270-6270/com.test.test.android V/MediaPlayer-JNI﹕ isPlaying: 1
07-03 17:03:18.170    6270-6365/com.test.test.android D/cocos2d-x debug info﹕ create rendererRecreatedListener for GLProgramState
07-03 17:03:21.075    6270-6365/com.test.test.android D/TextLayoutCache﹕ Enable myanmar Zawgyi converter
07-03 17:03:21.085    6270-6365/com.test.test.android D/TextLayoutCache﹕ Enable myanmar Zawgyi converter
07-03 17:03:21.090    6270-6365/com.test.test.android D/TextLayoutCache﹕ Enable myanmar Zawgyi converter
07-03 17:03:21.100    6270-6365/com.test.test.android D/TextLayoutCache﹕ Enable myanmar Zawgyi converter
07-03 17:03:21.135    6270-6365/com.test.test.android D/dalvikvm﹕ GC_FOR_ALLOC freed 1716K, 13% free 18529K/21108K, paused 34ms, total 34ms
07-03 17:03:21.575    6270-6365/com.test.test.android D/cocos2d-x debug info﹕ cocos2d: SpriteBatchNode: resizing TextureAtlas capacity from [30] to [41].
07-03 17:03:21.575    6270-6365/com.test.test.android D/cocos2d-x debug info﹕ cocos2d: SpriteBatchNode: resizing TextureAtlas capacity from [41] to [56].
07-03 17:03:26.895    6270-6363/com.test.test.android V/MediaPlayer﹕ decode(103, 0, 14688)
07-03 17:03:27.385    6270-6365/com.test.test.android V/MediaPlayer﹕ isPlaying: 1
07-03 17:03:27.385    6270-6365/com.test.test.android V/MediaPlayer-JNI﹕ isPlaying: 1
07-03 17:03:27.385    6270-6365/com.test.test.android V/MediaPlayer-JNI﹕ pause
07-03 17:03:27.385    6270-6365/com.test.test.android V/MediaPlayer﹕ pause
07-03 17:03:27.390    6270-6290/com.test.test.android V/MediaPlayer﹕ message received msg=7, ext1=0, ext2=0
07-03 17:03:27.390    6270-6290/com.test.test.android V/MediaPlayer﹕ unrecognized message: (7, 0, 0)
07-03 17:03:27.390    6270-6290/com.test.test.android V/MediaPlayer﹕ callback application
07-03 17:03:27.390    6270-6290/com.test.test.android V/MediaPlayer﹕ back from callback
07-03 17:03:27.390    6270-6365/com.test.test.android V/MediaPlayer﹕ isPlaying: 0
07-03 17:03:27.390    6270-6365/com.test.test.android V/MediaPlayer-JNI﹕ isPlaying: 0
07-03 17:03:27.405    6270-6270/com.test.test.android W/ApplicationPackageManager﹕ getCSCPackageItemText()
07-03 17:03:27.445    6270-7309/com.test.test.android D/cocos2d-x debug info﹕ VUNGLE STARTED CALLED
07-03 17:03:27.740    6270-6270/com.test.test.android D/dalvikvm﹕ GC_FOR_ALLOC freed 865K, 13% free 18653K/21344K, paused 25ms, total 25ms
07-03 17:03:27.775    6270-6270/com.test.test.android D/dalvikvm﹕ GC_FOR_ALLOC freed 38K, 13% free 18869K/21472K, paused 25ms, total 25ms
07-03 17:03:27.800    6270-6270/com.test.test.android D/dalvikvm﹕ GC_FOR_ALLOC freed 43K, 12% free 19131K/21728K, paused 17ms, total 17ms
07-03 17:03:27.865    6270-6270/com.test.test.android D/mali_winsys﹕ new_window_surface returns 0x3000
07-03 17:03:27.885    6270-6270/com.test.test.android V/MediaPlayer-JNI﹕ native_setup
07-03 17:03:27.885    6270-6270/com.test.test.android V/MediaPlayer﹕ constructor
07-03 17:03:27.885    6270-6270/com.test.test.android V/MediaPlayer﹕ setListener
07-03 17:03:27.890    6270-6270/com.test.test.android V/MediaPlayer-JNI﹕ get_session_id()
07-03 17:03:27.890    6270-6270/com.test.test.android V/MediaPlayer-JNI﹕ setDataSourceFD: fd 78
07-03 17:03:27.890    6270-6270/com.test.test.android V/MediaPlayer﹕ setDataSource(78, 0, 576460752303423487)
07-03 17:03:27.900    6270-6289/com.test.test.android V/MediaPlayer﹕ message received msg=8, ext1=0, ext2=0
07-03 17:03:27.900    6270-6289/com.test.test.android V/MediaPlayer﹕ notify(8, 0, 0) callback on disconnected mediaplayer
07-03 17:03:27.930    6270-6270/com.test.test.android V/MediaPlayer﹕ setVideoSurfaceTexture
07-03 17:03:27.930    6270-6270/com.test.test.android V/MediaPlayer-JNI﹕ setAudioStreamType: 3
07-03 17:03:27.930    6270-6270/com.test.test.android V/MediaPlayer﹕ MediaPlayer::setAudioStreamType
07-03 17:03:27.930    6270-6270/com.test.test.android V/MediaPlayer﹕ setVideoSurfaceTexture
07-03 17:03:27.930    6270-6270/com.test.test.android V/MediaPlayer﹕ prepareAsync
07-03 17:03:27.935    6270-6270/com.test.test.android V/MediaPlayer-JNI﹕ getCurrentPosition: 9282 (msec)
07-03 17:03:27.935    6270-6270/com.test.test.android V/MediaPlayer﹕ isPlaying: 0
07-03 17:03:27.935    6270-6270/com.test.test.android V/MediaPlayer-JNI﹕ isPlaying: 0
07-03 17:03:27.995    6270-6270/com.test.test.android W/ApplicationPackageManager﹕ getCSCPackageItemText()
07-03 17:03:28.000    6270-6270/com.test.test.android I/PersonaManager﹕ getPersonaService() name persona_policy
07-03 17:03:28.000    6270-6289/com.test.test.android V/MediaPlayer﹕ message received msg=300, ext1=0, ext2=0
07-03 17:03:28.000    6270-6289/com.test.test.android V/MediaPlayer﹕ Received SEC_MM_PLAYER_CONTEXT_AWARE
07-03 17:03:28.000    6270-6289/com.test.test.android V/MediaPlayer﹕ callback application
07-03 17:03:28.000    6270-6289/com.test.test.android V/MediaPlayer﹕ back from callback
07-03 17:03:28.000    6270-6289/com.test.test.android V/MediaPlayer﹕ message received msg=100, ext1=1, ext2=-19
07-03 17:03:28.000    6270-6289/com.test.test.android E/MediaPlayer﹕ error (1, -19)
07-03 17:03:28.000    6270-6289/com.test.test.android V/MediaPlayer﹕ callback application
07-03 17:03:28.000    6270-6289/com.test.test.android V/MediaPlayer﹕ back from callback
07-03 17:03:28.010    6270-6270/com.test.test.android W/VungleEvent﹕ com.vungle.publisher.reporting.AdReportEventListener already listening
07-03 17:03:28.055    6270-6270/com.test.test.android E/ViewRootImpl﹕ sendUserActionEvent() mView == null
07-03 17:03:28.085    6270-6270/com.test.test.android D/mali_winsys﹕ new_window_surface returns 0x3000
07-03 17:03:28.100    6270-6270/com.test.test.android V/MediaPlayer-JNI﹕ native_setup
07-03 17:03:28.100    6270-6270/com.test.test.android V/MediaPlayer﹕ constructor
07-03 17:03:28.100    6270-6270/com.test.test.android V/MediaPlayer﹕ setListener
07-03 17:03:28.100    6270-6270/com.test.test.android V/MediaPlayer-JNI﹕ get_session_id()
07-03 17:03:28.105    6270-6270/com.test.test.android V/MediaPlayer-JNI﹕ setDataSourceFD: fd 82
07-03 17:03:28.105    6270-6270/com.test.test.android V/MediaPlayer﹕ setDataSource(82, 0, 576460752303423487)
07-03 17:03:28.105    6270-6289/com.test.test.android V/MediaPlayer﹕ message received msg=8, ext1=0, ext2=0
07-03 17:03:28.105    6270-6289/com.test.test.android V/MediaPlayer﹕ notify(8, 0, 0) callback on disconnected mediaplayer
07-03 17:03:28.135    6270-6270/com.test.test.android V/MediaPlayer﹕ setVideoSurfaceTexture
07-03 17:03:28.135    6270-6270/com.test.test.android V/MediaPlayer-JNI﹕ setAudioStreamType: 3
07-03 17:03:28.135    6270-6270/com.test.test.android V/MediaPlayer﹕ MediaPlayer::setAudioStreamType
07-03 17:03:28.135    6270-6270/com.test.test.android V/MediaPlayer﹕ setVideoSurfaceTexture
07-03 17:03:28.135    6270-6270/com.test.test.android V/MediaPlayer﹕ prepareAsync
07-03 17:03:28.170    6270-6270/com.test.test.android E/ViewRootImpl﹕ sendUserActionEvent() mView == null
07-03 17:03:28.170    6270-6270/com.test.test.android I/MediaPlayer﹕ send context aware event
07-03 17:03:28.175    6270-6270/com.test.test.android I/MediaPlayer﹕ sendBroadcast CONTEXT_AWARE_MUSIC_INFO - type(error) - id (59)
07-03 17:03:28.175    6270-6270/com.test.test.android E/MediaPlayer﹕ Error (1,-19)
07-03 17:03:28.180    6270-6270/com.test.test.android D/VideoView﹕ Error: 1,-19
07-03 17:03:28.180    6270-6270/com.test.test.android E/VungleAd﹕ video.onError: 1, -19
07-03 17:03:28.185    6270-6270/com.test.test.android D/AndroidRuntime﹕ Shutting down VM
07-03 17:03:28.185    6270-6270/com.test.test.android W/dalvikvm﹕ threadid=1: thread exiting with uncaught exception (group=0x41788c08)
07-03 17:03:28.185    6270-6270/com.test.test.android W/System.err﹕ java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
07-03 17:03:28.190    6270-6270/com.test.test.android W/System.err﹕ at android.support.v4.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:1365)
07-03 17:03:28.190    6270-6270/com.test.test.android W/System.err﹕ at android.support.v4.app.FragmentManagerImpl.enqueueAction(FragmentManager.java:1383)
07-03 17:03:28.190    6270-6270/com.test.test.android W/System.err﹕ at android.support.v4.app.BackStackRecord.commitInternal(BackStackRecord.java:636)
07-03 17:03:28.190    6270-6270/com.test.test.android W/System.err﹕ at android.support.v4.app.BackStackRecord.commit(BackStackRecord.java:615)
07-03 17:03:28.190    6270-6270/com.test.test.android W/System.err﹕ at com.vungle.publisher.FullScreenAdActivity.a(vungle:300)
07-03 17:03:28.190    6270-6270/com.test.test.android W/System.err﹕ at com.vungle.publisher.FullScreenAdActivity.a(vungle:246)
07-03 17:03:28.190    6270-6270/com.test.test.android W/System.err﹕ at com.vungle.publisher.FullScreenAdActivity$b.c(vungle:365)
07-03 17:03:28.190    6270-6270/com.test.test.android W/System.err﹕ at com.vungle.publisher.display.view.VideoFragment.onError(vungle:804)
07-03 17:03:28.190    6270-6270/com.test.test.android W/System.err﹕ at android.widget.VideoView$5.onError(VideoView.java:505)
07-03 17:03:28.190    6270-6270/com.test.test.android W/System.err﹕ at android.media.MediaPlayer$EventHandler.handleMessage(MediaPlayer.java:2979)
07-03 17:03:28.190    6270-6270/com.test.test.android W/System.err﹕ at android.os.Handler.dispatchMessage(Handler.java:102)
07-03 17:03:28.190    6270-6270/com.test.test.android W/System.err﹕ at android.os.Looper.loop(Looper.java:157)
07-03 17:03:28.195    6270-6270/com.test.test.android W/System.err﹕ at android.app.ActivityThread.main(ActivityThread.java:5335)
07-03 17:03:28.195    6270-6270/com.test.test.android W/System.err﹕ at java.lang.reflect.Method.invokeNative(Native Method)
07-03 17:03:28.195    6270-6270/com.test.test.android W/System.err﹕ at java.lang.reflect.Method.invoke(Method.java:515)
07-03 17:03:28.195    6270-6270/com.test.test.android W/System.err﹕ at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265)
07-03 17:03:28.195    6270-6270/com.test.test.android W/System.err﹕ at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)
07-03 17:03:28.195    6270-6270/com.test.test.android W/System.err﹕ at dalvik.system.NativeStart.main(Native Method)
07-03 17:03:28.210    6270-6290/com.test.test.android V/MediaPlayer﹕ message received msg=5, ext1=960, ext2=540
07-03 17:03:28.210    6270-6290/com.test.test.android V/MediaPlayer﹕ New video size 960 x 540
07-03 17:03:28.210    6270-6290/com.test.test.android V/MediaPlayer﹕ callback application
07-03 17:03:28.210    6270-6290/com.test.test.android V/MediaPlayer﹕ back from callback
07-03 17:03:28.210    6270-6290/com.test.test.android V/MediaPlayer﹕ message received msg=1, ext1=0, ext2=0
07-03 17:03:28.210    6270-6290/com.test.test.android V/MediaPlayer﹕ prepared
07-03 17:03:28.210    6270-6290/com.test.test.android V/MediaPlayer﹕ callback application
07-03 17:03:28.210    6270-6290/com.test.test.android V/MediaPlayer﹕ back from callback
07-03 17:03:28.650    6270-6270/com.test.test.android W/Settings﹕ Setting call_auto_retry has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.
07-03 17:03:28.730    6270-6481/com.test.test.android D/dalvikvm﹕ GC_FOR_ALLOC freed 1768K, 12% free 20435K/23028K, paused 28ms, total 28ms
07-03 17:03:28.730    6270-6281/com.test.test.android V/MediaPlayer-JNI﹕ native_finalize
07-03 17:03:28.730    6270-6281/com.test.test.android W/MediaPlayer-JNI﹕ MediaPlayer finalized without being released
07-03 17:03:28.735    6270-6281/com.test.test.android V/MediaPlayer-JNI﹕ release
07-03 17:03:28.735    6270-6281/com.test.test.android V/MediaPlayer﹕ setListener
07-03 17:03:28.735    6270-6281/com.test.test.android V/MediaPlayer﹕ disconnect
07-03 17:03:28.740    6270-6281/com.test.test.android V/MediaPlayer﹕ destructor
07-03 17:03:28.740    6270-6281/com.test.test.android V/MediaPlayer﹕ disconnect
07-03 17:03:28.810    6270-6270/com.test.test.android W/Settings﹕ Setting emergency_tone has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.
07-03 17:03:28.845    6270-6270/com.test.test.android W/Settings﹕ Setting font_size has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.
07-03 17:03:29.195    6270-6270/com.test.test.android W/Settings﹕ Setting roaming_settings has moved from android.provider.Settings.Secure to android.provider.Settings.Global.
07-03 17:03:29.205    6270-6270/com.test.test.android W/Settings﹕ Setting data_roaming2 has moved from android.provider.Settings.Secure to android.provider.Settings.Global.
07-03 17:03:29.225    6270-6270/com.test.test.android W/Settings﹕ Setting mobile_data has moved from android.provider.Settings.Secure to android.provider.Settings.Global.
07-03 17:03:29.225    6270-6270/com.test.test.android W/Settings﹕ Setting mobile_data_secondary has moved from android.provider.Settings.Secure to android.provider.Settings.Global.
07-03 17:03:29.240    6270-6270/com.test.test.android W/Settings﹕ Setting setup_prepaid_data_service_url has moved from android.provider.Settings.Secure to android.provider.Settings.Global.
07-03 17:03:29.255    6270-6270/com.test.test.android W/Settings﹕ Setting wifi_saved_state has moved from android.provider.Settings.Secure to android.provider.Settings.Global.

07-03 17:03:29.335    6270-7372/com.test.test.android D/dalvikvm﹕ GC_FOR_ALLOC freed 1687K, 16% free 19688K/23188K, paused 23ms, total 23ms
07-03 17:03:29.390    6270-6277/com.test.test.android I/dalvikvm﹕ Jit: resizing JitTable from 4096 to 8192
07-03 17:03:29.525    6270-6270/com.test.test.android E/AndroidRuntime﹕ FATAL EXCEPTION: main
    Process: com.test.test.android, PID: 6270
    java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
            at android.support.v4.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:1365)
            at android.support.v4.app.FragmentManagerImpl.enqueueAction(FragmentManager.java:1383)
            at android.support.v4.app.BackStackRecord.commitInternal(BackStackRecord.java:636)
            at android.support.v4.app.BackStackRecord.commit(BackStackRecord.java:615)
            at com.vungle.publisher.FullScreenAdActivity.a(vungle:300)
            at com.vungle.publisher.FullScreenAdActivity.a(vungle:246)
            at com.vungle.publisher.FullScreenAdActivity$b.c(vungle:365)
            at com.vungle.publisher.display.view.VideoFragment.onError(vungle:804)
            at android.widget.VideoView$5.onError(VideoView.java:505)
            at android.media.MediaPlayer$EventHandler.handleMessage(MediaPlayer.java:2979)
            at android.os.Handler.dispatchMessage(Handler.java:102)
            at android.os.Looper.loop(Looper.java:157)
            at android.app.ActivityThread.main(ActivityThread.java:5335)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:515)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)
            at dalvik.system.NativeStart.main(Native Method)
07-03 17:03:30.035    6270-6366/com.test.test.android D/dalvikvm﹕ GC_FOR_ALLOC freed 2117K, 16% free 19619K/23188K, paused 29ms, total 29ms

It works on IOS… so I didn’t know why is this happening

what version of Android are you running?

4.4.2

Is there any issue with the version?

and what version of SDKBOX are you running?

1.1.3

It runs as expected in iOS.

So we are at version 1.1.5 and I think this solves your issues. Can you update to the latest and let me know?

Hi, i’m experiencing

error: cannot find symbol
        SDKBox.onResume();
        ^
  symbol:   variable SDKBox
  location: class AppActivity

complaining that

error: package com.sdkbox.plugin does not exist
import com.sdkbox.plugin.SDKBox;

How can we resolve this?

hi, after a while i manage to compile it and but crash upon app open. do you know how to fix this?

FATAL EXCEPTION: main
    Process: com.test.test.android, PID: 1164
    java.lang.UnsatisfiedLinkError: Native method not found: com.sdkbox.plugin.SDKBox.nativeSetAssetManager:(Landroid/content/Context;Landroid/content/res/AssetManager;)V
            at com.sdkbox.plugin.SDKBox.nativeSetAssetManager(Native Method)
            at com.sdkbox.plugin.SDKBox.init(SDKBox.java:61)
            at com.test.test.AppActivity.onCreate(AppActivity.java:67)
            at android.app.Activity.performCreate(Activity.java:5389)
            at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2256)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2350)
            at android.app.ActivityThread.access$800(ActivityThread.java:163)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1257)
            at android.os.Handler.dispatchMessage(Handler.java:102)
            at android.os.Looper.loop(Looper.java:157)
            at android.app.ActivityThread.main(ActivityThread.java:5335)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:515)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)
            at dalvik.system.NativeStart.main(Native Method)

Finally i solved the problem. But, when i execute

  sdkbox::PluginVungle::show("reward");

Nothing happens. It keep saying:

D/PluginVungle﹕ No cached or streaming ad available

This is the log:

D/CSC﹕ caching assets/sdkbox_config.json
D/CSC﹕ caching assets/sdkbox_config.json
D/PluginFactory﹕ Java class name of plugin PluginVungle is : com/sdkbox/plugin/PluginVungle
/SDKBox﹕ class name : ----com/sdkbox/plugin/PluginVungle----
/dalvikvm﹕ GC_FOR_ALLOC freed 1958K, 18% free 17872K/21700K, paused 32ms, total 32ms
Tracking http://metrics.sdkbox.com/?{"CDID":"67452301EFCDAB8998BADCFE10325476C3D2E1F0", "CocosVersion":"v3", "ProjectType":"cpp", "SdkboxVersion":"sdkbox V1.1.5", "INIT":{"Device":"armv7l", "OS":"REL, version=4.4.2, SDK=19", "App":"Scramble Guess"}} sent.
Tracking http://metrics.sdkbox.com/?{"CDID":"67452301EFCDAB8998BADCFE10325476C3D2E1F0", "CocosVersion":"v3", "ProjectType":"cpp", "SdkboxVersion":"sdkbox V1.1.5", "Vungle":{"PluginVersion":"android: 3.3.0","ads":{"reward":{"backbutton":"false","incentivized":"true","sound":"false"},"video":{"backbutton":"true","sound":"true"}},"id":"5593971a980396c82f000205"}} sent.
V/MediaPlayer﹕ decode(105, 0, 14688)
D/PluginVungle﹕ No cached or streaming ad available
V/MediaPlayer﹕ decode(115, 0, 29376)

Any solution?

do you have everything defined in sdkbox_config.json for Vungle?

Vungle ads takes a while to cache

Checkout our samples. If you click on vungle ads and click again a few seconds later you should be able to see it.

Hi,

I ran into problem like jatmiko said too… I waited long enough, around half an hour, and tap some button to call the function, and it said “no cached or streaming ad available” too… just now, i tried it again and got the same result…

Can you try play the video ad, if nothing happens, retry in like 10 seconds? I’ll look into this issue though.

Finally i downloaded the sample project… when i build on android studio, it crashed again.
Any solutions? So frustated with this endless SDK fatigue…

    09-07 14:48:42.237  23049-23049/? I/SELinux﹕ Function: selinux_android_load_priority [0], There is no sepolicy file.
09-07 14:48:42.252  23049-23049/? I/SELinux﹕ Function: selinux_android_load_priority , spota verifySig and checkHash pass. priority version is VE=SEPF_SM-N900_4.4.2_0040
09-07 14:48:42.252  23049-23049/? I/SELinux﹕ selinux_android_seapp_context_reload: seapp_contexts file is loaded from /data/security/spota/seapp_contexts
09-07 14:48:42.252  23049-23049/? E/dalvikvm﹕ >>>>> Normal User
09-07 14:48:42.252  23049-23049/? E/dalvikvm﹕ >>>>> org.cocos2dx.cpp [ userId:0 | appId:10461 ]
09-07 14:48:42.257  23049-23049/? D/dalvikvm﹕ Late-enabling CheckJNI
09-07 14:48:42.647  23049-23049/org.cocos2dx.cpp W/ApplicationPackageManager﹕ getCSCPackageItemText()
09-07 14:48:42.647  23049-23049/org.cocos2dx.cpp I/PersonaManager﹕ getPersonaService() name persona_policy
09-07 14:48:42.672  23049-23049/org.cocos2dx.cpp D/dalvikvm﹕ Trying to load lib /data/app-lib/org.cocos2dx.cpp-1/libcocos2dcpp.so 0x428a6068
09-07 14:48:42.777  23049-23049/org.cocos2dx.cpp D/dalvikvm﹕ Added shared lib /data/app-lib/org.cocos2dx.cpp-1/libcocos2dcpp.so 0x428a6068
09-07 14:48:42.777  23049-23049/org.cocos2dx.cpp D/JniHelper﹕ JniHelper::setJavaVM(0x416691f8), pthread_self() = 1074520404
09-07 14:48:42.777  23049-23049/org.cocos2dx.cpp D/main﹕ cocos_android_app_init
09-07 14:48:42.842  23049-23049/org.cocos2dx.cpp D/Cocos2dxActivity﹕ model=SM-N900
09-07 14:48:42.842  23049-23049/org.cocos2dx.cpp D/Cocos2dxActivity﹕ product=ha3gxx
09-07 14:48:42.842  23049-23049/org.cocos2dx.cpp D/Cocos2dxActivity﹕ isEmulator=false
09-07 14:48:42.912  23049-23049/org.cocos2dx.cpp I/﹕ PLATFORM VERSION : JB-MR-2
09-07 14:48:42.932  23049-23049/org.cocos2dx.cpp D/mali_winsys﹕ new_window_surface returns 0x3000
09-07 14:48:42.982  23049-23049/org.cocos2dx.cpp D/OpenGLRenderer﹕ Enabling debug mode 0
09-07 14:48:43.012  23049-23073/org.cocos2dx.cpp D/mali_winsys﹕ new_window_surface returns 0x3000
09-07 14:48:43.022  23049-23073/org.cocos2dx.cpp D/cocos2d-x debug info﹕ {
    gl.supports_vertex_array_object: true
    gl.supports_BGRA8888: false
    gl.supports_ATITC: false
    gl.supports_S3TC: false
    cocos2d.x.version: cocos2d-x-3.7.1
    gl.supports_discard_framebuffer: true
    cocos2d.x.compiled_with_profiler: false
    gl.supports_PVRTC: false
    cocos2d.x.build_type: DEBUG
    gl.renderer: Mali-T628
    gl.supports_ETC1: true
    cocos2d.x.compiled_with_gl_state_cache: true
    gl.version: OpenGL ES 3.0
    gl.supports_NPOT: true
    gl.max_texture_units: 32
    gl.vendor: ARM
    gl.max_texture_size: 8192
    }
09-07 14:48:43.062  23049-23073/org.cocos2dx.cpp D/PluginFactory﹕ Java class name of plugin PluginVungle is : com/sdkbox/plugin/PluginVungle
09-07 14:48:43.062  23049-23073/org.cocos2dx.cpp I/SDKBox﹕ class name : ----com/sdkbox/plugin/PluginVungle----
09-07 14:48:43.067  23049-23073/org.cocos2dx.cpp I/dalvikvm﹕ Failed resolving Lcom/vungle/publisher/location/GoogleLocationClientDetailedLocationProvider; interface 939 'Lcom/google/android/gms/common/GooglePlayServicesClient$ConnectionCallbacks;'
09-07 14:48:43.067  23049-23073/org.cocos2dx.cpp W/dalvikvm﹕ Link of class 'Lcom/vungle/publisher/location/GoogleLocationClientDetailedLocationProvider;' failed
09-07 14:48:43.067  23049-23073/org.cocos2dx.cpp E/dalvikvm﹕ Could not find class 'com.vungle.publisher.location.GoogleLocationClientDetailedLocationProvider', referenced from method com.vungle.publisher.inject.ConfigurablePublisherModule.a
09-07 14:48:43.067  23049-23073/org.cocos2dx.cpp W/dalvikvm﹕ VFY: unable to resolve new-instance 1484 (Lcom/vungle/publisher/location/GoogleLocationClientDetailedLocationProvider;) in Lcom/vungle/publisher/inject/ConfigurablePublisherModule;
09-07 14:48:43.067  23049-23073/org.cocos2dx.cpp D/dalvikvm﹕ VFY: replacing opcode 0x22 at 0x0001
09-07 14:48:43.067  23049-23073/org.cocos2dx.cpp I/dalvikvm﹕ Failed resolving Lcom/vungle/publisher/location/GoogleLocationServicesDetailedLocationProvider; interface 944 'Lcom/google/android/gms/common/api/GoogleApiClient$ConnectionCallbacks;'
09-07 14:48:43.067  23049-23073/org.cocos2dx.cpp W/dalvikvm﹕ Link of class 'Lcom/vungle/publisher/location/GoogleLocationServicesDetailedLocationProvider;' failed
09-07 14:48:43.067  23049-23073/org.cocos2dx.cpp E/dalvikvm﹕ Could not find class 'com.vungle.publisher.location.GoogleLocationServicesDetailedLocationProvider', referenced from method com.vungle.publisher.inject.ConfigurablePublisherModule.b
09-07 14:48:43.067  23049-23073/org.cocos2dx.cpp W/dalvikvm﹕ VFY: unable to resolve new-instance 1486 (Lcom/vungle/publisher/location/GoogleLocationServicesDetailedLocationProvider;) in Lcom/vungle/publisher/inject/ConfigurablePublisherModule;
09-07 14:48:43.067  23049-23073/org.cocos2dx.cpp D/dalvikvm﹕ VFY: replacing opcode 0x22 at 0x0001
09-07 14:48:43.072  23049-23073/org.cocos2dx.cpp I/dalvikvm﹕ Failed resolving Lcom/vungle/publisher/location/GoogleLocationClientDetailedLocationProvider; interface 939 'Lcom/google/android/gms/common/GooglePlayServicesClient$ConnectionCallbacks;'
09-07 14:48:43.072  23049-23073/org.cocos2dx.cpp W/dalvikvm﹕ Link of class 'Lcom/vungle/publisher/location/GoogleLocationClientDetailedLocationProvider;' failed
09-07 14:48:43.072  23049-23073/org.cocos2dx.cpp D/dalvikvm﹕ DexOpt: unable to opt direct call 0x265b at 0x03 in Lcom/vungle/publisher/inject/ConfigurablePublisherModule;.a
09-07 14:48:43.072  23049-23073/org.cocos2dx.cpp I/dalvikvm﹕ Failed resolving Lcom/vungle/publisher/location/GoogleLocationServicesDetailedLocationProvider; interface 944 'Lcom/google/android/gms/common/api/GoogleApiClient$ConnectionCallbacks;'
09-07 14:48:43.072  23049-23073/org.cocos2dx.cpp W/dalvikvm﹕ Link of class 'Lcom/vungle/publisher/location/GoogleLocationServicesDetailedLocationProvider;' failed
09-07 14:48:43.072  23049-23073/org.cocos2dx.cpp D/dalvikvm﹕ DexOpt: unable to opt direct call 0x266d at 0x03 in Lcom/vungle/publisher/inject/ConfigurablePublisherModule;.b
09-07 14:48:43.557  23049-23073/org.cocos2dx.cpp I/dalvikvm﹕ Could not find method com.google.android.gms.common.GooglePlayServicesUtil.isGooglePlayServicesAvailable, referenced from method com.vungle.publisher.env.AndroidDevice.b
09-07 14:48:43.557  23049-23073/org.cocos2dx.cpp W/dalvikvm﹕ VFY: unable to resolve static method 6451: Lcom/google/android/gms/common/GooglePlayServicesUtil;.isGooglePlayServicesAvailable (Landroid/content/Context;)I
09-07 14:48:43.557  23049-23073/org.cocos2dx.cpp D/dalvikvm﹕ VFY: replacing opcode 0x71 at 0x0003
09-07 14:48:43.562  23049-23073/org.cocos2dx.cpp I/dalvikvm﹕ Could not find method com.google.android.gms.ads.identifier.AdvertisingIdClient.getAdvertisingIdInfo, referenced from method com.vungle.publisher.env.AdvertisingDeviceIdStrategy.b
09-07 14:48:43.562  23049-23073/org.cocos2dx.cpp W/dalvikvm﹕ VFY: unable to resolve static method 6449: Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;.getAdvertisingIdInfo (Landroid/content/Context;)Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$Info;
09-07 14:48:43.562  23049-23073/org.cocos2dx.cpp D/dalvikvm﹕ VFY: replacing opcode 0x71 at 0x0012
09-07 14:48:43.647  23049-23073/org.cocos2dx.cpp W/ResourceType﹕ No package identifier when getting value for resource number 0x00000000
09-07 14:48:43.647  23049-23073/org.cocos2dx.cpp W/dalvikvm﹕ Invalid indirect reference 0x42a42ea0 in decodeIndirectRef
09-07 14:48:43.652  23049-23073/org.cocos2dx.cpp I/dalvikvm﹕ "GLThread 18009" prio=5 tid=13 RUNNABLE
09-07 14:48:43.652  23049-23073/org.cocos2dx.cpp I/dalvikvm﹕ | group="main" sCount=0 dsCount=0 obj=0x428e6e90 self=0x75dcbb38
09-07 14:48:43.652  23049-23073/org.cocos2dx.cpp I/dalvikvm﹕ | sysTid=23073 nice=0 sched=0/0 cgrp=apps handle=1977473824
09-07 14:48:43.652  23049-23073/org.cocos2dx.cpp I/dalvikvm﹕ | state=R schedstat=( 372163041 210228712 1956 ) utm=18 stm=18 core=0
09-07 14:48:43.652  23049-23073/org.cocos2dx.cpp I/dalvikvm﹕ at org.cocos2dx.lib.Cocos2dxRenderer.nativeInit(Native Method)
09-07 14:48:43.652  23049-23073/org.cocos2dx.cpp I/dalvikvm﹕ at org.cocos2dx.lib.Cocos2dxRenderer.onSurfaceCreated(Cocos2dxRenderer.java:74)
09-07 14:48:43.652  23049-23073/org.cocos2dx.cpp I/dalvikvm﹕ at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1509)
09-07 14:48:43.652  23049-23073/org.cocos2dx.cpp I/dalvikvm﹕ at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1248)
09-07 14:48:43.652  23049-23073/org.cocos2dx.cpp I/dalvikvm﹕ [ 09-07 14:48:43.652 23049:23073 E/dalvikvm ]
    VM aborting
09-07 14:48:43.652  23049-23073/org.cocos2dx.cpp A/libc﹕ Fatal signal 6 (SIGABRT) at 0x00005a09 (code=-6), thread 23073 (Thread-18009)

We’re still working on Android Studio build, currently cocos command line build is the recommended way to build cocos2d-x with SDKBOX. More testing for Android Studio are underway.

What is difference between sdkbox::PluginVungle::show(“video”) and sdkbox::PluginVungle::show(“reward”) ???

“reward” and “video” are the different video ads definied in your sdkbox_config.json file.

See an example here