Flurry plugin crash on Android

I’m seeing the following stack trace in the Google Play Developer Console, and I’ve had a beta user reporting that the app sometimes crashes at startup. The error below calls out plugin.flurry.analytics but I can’t tell if this is an issue with my code or with the plugin. Please help!

java.lang.IllegalStateException: stack underflow

at com.naef.jnlua.LuaState.lua_pcall(Native Method)

at com.naef.jnlua.LuaState.call(Unknown Source)

at plugin.flurry.analytics.LuaLoader$Init$1.run(LuaLoader.java:660)

at android.os.Handler.handleCallback(Handler.java:739)

at android.os.Handler.dispatchMessage(Handler.java:95)

at android.os.Looper.loop(Looper.java:148)

at android.app.ActivityThread.main(ActivityThread.java:5417)

at java.lang.reflect.Method.invoke(Native Method)

at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

Perhaps the problem is from the version of android. Flurry don’t work with android 4.2 and below. You have to add this condition:

if (system.getInfo("androidApiLevel")\>=18) then

I have some times problem with it. I remove it of my apps and I will try to put it back in. I am not certain of some things but when their is maintenance on the corona server, build process display an error and when it finish there is no error on console but file of the plugin are not in the apps.

Thanks. The crash happened on 6.0 though. I’m probably going to remove Flurry if I see this happen again. 

Sometimes when with the apk i build i have no problem but sometime I have error when the app is launch. I don’t know why. The issue is to use protect call:

local function analyticspcall() ... end if not pcall(analyticspcall) then print("plugin analytics don't work") end

Try with that,

good luck