Eclipse/Android Studio error

Discussion in 'Technical Discussion' started by gabrielcmoura1, May 19, 2016.

  1. gabrielcmoura1

    gabrielcmoura1 Boxer

    Joined:
    Mar 1, 2016
    Messages:
    4
    Likes Received:
    0
    Hello everyone,

    My game is working perfectly on iOS. Now, I'm trying to run it on Android, but it has been complicated.

    I'm always getting these errors. Can someone help me out with that?


    java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/util/ArrayMap;
    at com.google.android.gms.common.api.GoogleApiClient$Builder.<init>(Unknown Source)
    at com.secrethq.utils.PTServicesBridge.initBridge(PTServicesBridge.java:74)
    at com.mycompany.game.PTPlayer.onCreate(PTPlayer.java:50)
    at android.app.Activity.performCreate(Activity.java:6237)
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
    at android.app.ActivityThread.-wrap11(ActivityThread.java)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    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)
    Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.util.ArrayMap" on path: DexPathList[[zip file "/data/app/com.mycompany.game-2/base.apk"],nativeLibraryDirectories=[/data/app/com.mycompany.game-2/lib/x86, /data/app/com.mycompany.game-2/base.apk!/lib/x86, /vendor/lib, /system/lib]]
    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
    at com.google.android.gms.common.api.GoogleApiClient$Builder.<init>(Unknown Source)
    at com.secrethq.utils.PTServicesBridge.initBridge(PTServicesBridge.java:74)
    at com.mycompany.game.PTPlayer.onCreate(PTPlayer.java:50)
    at android.app.Activity.performCreate(Activity.java:6237)
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
    at android.app.ActivityThread.-wrap11(ActivityThread.java)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    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)
    Suppressed: java.lang.ClassNotFoundException: android.support.v4.util.ArrayMap
    at java.lang.Class.classForName(Native Method)
    at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
    at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
    ... 16 more
    Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
     
  2. Christoph

    Christoph Miniboss Boxer

    Joined:
    Oct 4, 2015
    Messages:
    2,807
    Likes Received:
    2,309
    Are you using Eclipse or Android Studio? These are two different apps. If I'm not mistaken, Buildbox still should use Eclipse. Not Android Studio.
     
  3. gabrielcmoura1

    gabrielcmoura1 Boxer

    Joined:
    Mar 1, 2016
    Messages:
    4
    Likes Received:
    0
    Hey Christoph,

    So , I tested my app using both of them. This error I'm getting when I run the game with android studio , and when I run the game using eclipse , it just doesn't run , even on a real device, the app just crashes.
     
  4. Christoph

    Christoph Miniboss Boxer

    Joined:
    Oct 4, 2015
    Messages:
    2,807
    Likes Received:
    2,309
    I think you can't run a BB game in the Eclipse simulator. At least I can't and the person that showed me how to set all up says the same. Not possible.
    If the app crashes on your app, it means you could make it work and export the APK?
     
  5. ahmeda89

    ahmeda89 Boxer

    Joined:
    Sep 16, 2016
    Messages:
    20
    Likes Received:
    1
    i have the same error .. are you found a solution?
     
  6. jcalle

    jcalle Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,193
    Likes Received:
    541
  7. ahmeda89

    ahmeda89 Boxer

    Joined:
    Sep 16, 2016
    Messages:
    20
    Likes Received:
    1
    i use android studio? is that the problem ?
     
  8. jcalle

    jcalle Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,193
    Likes Received:
    541
    Yes.
    You only have to use Eclipse.
     

Share This Page