SFVehicles example fails to run out of the box

59 paparan
Langkau ke mesej pertama yang belum dibaca

Joseph Banta

belum dibaca,
24 Jun 2015, 7:41:17 PTG24/06/15
kepada fireba...@googlegroups.com
So I got the code from
...then patched in my Google Maps API key in the AndroidManifest.xml.

I tried compiling the project first on the command-line with gradle, then by importing it into Android Studio.  Either way, upon installing it onto a device and running it, the app encounters an error when attempting to instantiate the Firebase object:

06-24 11:20:30.558  13912-13912/com.firebase.sfvehicles E/AndroidRuntime﹕ FATAL EXCEPTION: main
    java.lang.AbstractMethodError: abstract method not implemented
            at com.firebase.client.android.AndroidPlatform.newRunLoop(AndroidPlatform.java)
            at com.firebase.client.core.Context.ensureRunLoop(Context.java:219)
            at com.firebase.client.core.Context.initServices(Context.java:106)
            at com.firebase.client.core.Context.freeze(Context.java:87)
            at com.firebase.client.core.RepoManager.getLocalRepo(RepoManager.java:55)
            at com.firebase.client.core.RepoManager.getRepo(RepoManager.java:19)
            at com.firebase.client.Firebase.<init>(Firebase.java:182)
            at com.firebase.client.Firebase.<init>(Firebase.java:187)
            at com.firebase.client.Firebase.<init>(Firebase.java:165)
            at com.firebase.sfvehicles.SFVehiclesActivity.onCreate(SFVehiclesActivity.java:56)
            at android.app.Activity.performCreate(Activity.java)
            at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java)
            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java)
            at android.app.ActivityThread.access$700(ActivityThread.java)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java)
            at android.os.Handler.dispatchMessage(Handler.java)
            at android.os.Looper.loop(Looper.java)
            at android.app.ActivityThread.main(ActivityThread.java)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:525)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
            at dalvik.system.NativeStart.main(Native Method)

I believe I've followed the instructions, but please let me know if I've missed something. 

Jacob Wenger

belum dibaca,
24 Jun 2015, 9:07:08 PTG24/06/15
kepada fireba...@googlegroups.com
Hey Joseph,

I've got good news! We just released version 1.1.1 of the GeoFire Java client which fixes this issue. Check it out and let us know if you still have issues.

Jacob
Balas kepada semua
Balas kepada pengarang
Kirim Semula
0 mesej baharu