Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Flurry NoClassDefFoundError — Gideros Forum

Flurry NoClassDefFoundError

seppseppseppsepp Member
edited January 2015 in General questions
Android is driving me crazy ;) . Does anyone have a clue why such an error message might pop up?
01-31 19:38:43.895: E/AndroidRuntime(32732): java.lang.NoClassDefFoundError: com/flurry/android/FlurryEventRecordStatus
02-01 03:02:45.087: E/AndroidRuntime(9704): 	at com.flurry.android.FlurryAgent.logEvent(SourceFile:610)
02-01 03:02:45.087: E/AndroidRuntime(9704): 	at com.giderosmobile.android.plugins.flurry.GFlurry.logEvent(GFlurry.java:67)
Thanks a lot in advance.

Comments

  • Thanks a lot for your immediate reply @ar2rsawseen.

    I don't think I'm doing it intentionally - tracking before initialization. On iOS the same code works fine. Flow is this:

    init.lua
    require("flurry");
    app.game:initTracking(app.config.android.tracking.flurry.api_key);
    game.lua
    function Game:initTracking(apiKey)
      if flurry and flurry.isAvailable() then
        self.trackingInitiated = true
        flurry.startSession(apiKey)
      end
    end
    On to main.lua
    app.sceneManager:changeScene("start", 1, SceneManager.fade);
    start scene
    function StartScene:onEnterBegin()
      app.game:track("App_Launched", {}, true)
    end
    So, first track call happens pretty early. But things should be initiated before already.
  • ar2rsawseenar2rsawseen Maintainer
    Accepted Answer
    Ah, they introduced new initialization, which breaks backwards compatibility

    Applied fix here: https://github.com/gideros/giderosplugins/blob/master/Flurry/source/Android/src/com/giderosmobile/android/plugins/flurry/GFlurry.java

    you can simply this one file GFlurry.java
  • seppseppseppsepp Member
    edited February 2015
    Thanks a lot! Your fix is working fine.
Sign In or Register to comment.