Crashes reported using SDKBOX v1.4.1.7 and Flurry Analytics Plugin v1.4.1

I’ve just released an update to my game on Google Play today that uses the latest SDKBOX v1.4.1.7 and Flurry Analytics Plugin v1.4.1. Since then I’ve been getting lots of crash reports in the developer console, but only for devices running Android 2.3.3 - 2.3.7.

Here is the stack trace from one of the crash reports:

    java.lang.ExceptionInInitializerError
	at com.sdkbox.plugin.SDKBox.init(SDKBox.java:74)
	at org.cocos2dx.lib.Cocos2dxActivity.onCreate(Cocos2dxActivity.java:225)
	at com.tarekmongy.FlappyCrush.BaseGameActivity.onCreate(BaseGameActivity.java:87)
	at com.tarekmongy.FlappyCrush.MainActivity.onCreate(MainActivity.java:95)
	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
	at android.app.ActivityThread.access$1500(ActivityThread.java:117)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:130)
	at android.app.ActivityThread.main(ActivityThread.java:3683)
	at java.lang.reflect.Method.invokeNative(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:507)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)
	at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NoClassDefFoundError: android.util.JsonReader
	at com.sdkbox.services.TrackingLocalStorage.loadTracking(TrackingLocalStorage.java:256)
	at com.sdkbox.services.TrackingLocalStorage.<init>(TrackingLocalStorage.java:245)
	at com.sdkbox.plugin.TrackingInfoAndroid.<clinit>(TrackingInfoAndroid.java:55)
	... 17 more

Any help with this would be greatly appreciated. Thanks.

Thanks for reporting this we’ll look into it.

Thanks. Is there any way to downgrade to a previous version in the meantime? I’m getting loads of angry reviews because of these crashes right now.

Wooh that really bad, we wanted to update all plugins we using, but now seems to better skip this due one incorrectly working plugin.

It’s really bad that in most cases you cannot mix old and new plugins, so if one of plugins fail in new release u can’t use new release at all.

For sure you can downgrade, you should have .sdkbox folder in your home directory where is stored previous download sdkbox versions.

Thanks, yeah I found the old versions in that directory :smile:

Hi.

i use cocos 3.11.1, sdkbox 1.0.0.14.
my app had crash. this is log console.

Any help with this would be greatly appreciated. Thanks

07-17 14:09:49.573 19993-19993/com…app D/Cocos2dxActivity: model=HTC One V
07-17 14:09:49.573 19993-19993/com…app D/Cocos2dxActivity: product=htc_primou
07-17 14:09:49.573 19993-19993/com…app D/Cocos2dxActivity: isEmulator=false
07-17 14:09:50.084 19993-19993/com…app D/Cocos2dxActivity: onResume()
07-17 14:09:50.104 19993-20133/com…app W/dalvikvm: Exception Ljava/lang/RuntimeException; thrown while initializing Landroid/os/AsyncTask;
07-17 14:09:50.104 19993-20133/com…app W/dalvikvm: threadid=17: thread exiting with uncaught exception (group=0x40ab0228)
07-17 14:09:50.124 19993-20133/com…app E/AndroidRuntime: FATAL EXCEPTION: Timer-0
java.lang.ExceptionInInitializerError
at com.sdkbox.services.TrackingLocalStorage$PeriodicTrackingTask.run(TrackingLocalStorage.java:271)
at java.util.Timer$TimerImpl.run(Timer.java:284)
Caused by: java.lang.RuntimeException: Can’t create handler inside thread that has not called Looper.prepare()
at android.os.Handler.(Handler.java:121)
at android.os.AsyncTask$InternalHandler.(AsyncTask.java:607)
at android.os.AsyncTask$InternalHandler.(AsyncTask.java:607)
at android.os.AsyncTask.(AsyncTask.java:190)
at com.sdkbox.services.TrackingLocalStorage$PeriodicTrackingTask.run(TrackingLocalStorage.java:271)
at java.util.Timer$TimerImpl.run(Timer.java:284)
07-17 14:09:50.204 19993-20129/com…app E/dalvikvm: Could not find class ‘android.os.UserManager’, referenced from method com.google.android.gms.common.zze.zzan
07-17 14:09:50.204 19993-20129/com…app W/dalvikvm: VFY: unable to resolve check-cast 265 (Landroid/os/UserManager;) in Lcom/google/android/gms/common/zze;
07-17 14:09:50.204 19993-20129/com…app D/dalvikvm: VFY: replacing opcode 0x1f at 0x000c

Can you double check your Cocos2dxActivity.java file? looks like this file is not been patched correctly.