SFVehicles example fails to run out of the box

瀏覽次數:59 次
跳到第一則未讀訊息

Joseph Banta

未讀,
2015年6月24日 晚上7:41:172015/6/24
收件者: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

未讀,
2015年6月24日 晚上9:07:082015/6/24
收件者: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
回覆所有人
回覆作者
轉寄
0 則新訊息