我正在关注移动后端入门教程。
但是,当我尝试运行下载的客户端时,出现以下异常:
05-23 14:48:49.960: E/AndroidRuntime(15384): FATAL EXCEPTION: main
05-23 14:48:49.960: E/AndroidRuntime(15384): java.lang.NoClassDefFoundError: com.google.cloud.backend.android.GCMIntentService
05-23 14:48:49.960: E/AndroidRuntime(15384): at com.google.cloud.backend.android.CloudBackendAsync.<init>(CloudBackendAsync.java:71)
05-23 14:48:49.960: E/AndroidRuntime(15384): at com.google.cloud.backend.android.CloudBackendMessaging.<init>(CloudBackendMessaging.java:47)
05-23 14:48:49.960: E/AndroidRuntime(15384): at com.google.cloud.backend.android.CloudBackendActivity.onCreate(CloudBackendActivity.java:75)
05-23 14:48:49.960: E/AndroidRuntime(15384): at com.google.cloud.backend.android.sample.guestbook.GuestbookActivity.onCreate(GuestbookActivity.java:60)
05-23 14:48:49.960: E/AndroidRuntime(15384): at android.app.Activity.performCreate(Activity.java:5206)
05-23 14:48:49.960: E/AndroidRuntime(15384): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1083)
05-23 14:48:49.960: E/AndroidRuntime(15384): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2064)
05-23 14:48:49.960: E/AndroidRuntime(15384): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2125)
05-23 14:48:49.960: E/AndroidRuntime(15384): at android.app.ActivityThread.access$600(ActivityThread.java:140)
05-23 14:48:49.960: E/AndroidRuntime(15384): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1227)
05-23 14:48:49.960: E/AndroidRuntime(15384): at android.os.Handler.dispatchMessage(Handler.java:99)
05-23 14:48:49.960: E/AndroidRuntime(15384): at android.os.Looper.loop(Looper.java:137)
05-23 14:48:49.960: E/AndroidRuntime(15384): at android.app.ActivityThread.main(ActivityThread.java:4898)
05-23 14:48:49.960: E/AndroidRuntime(15384): at java.lang.reflect.Method.invokeNative(Native Method)
05-23 14:48:49.960: E/AndroidRuntime(15384): at java.lang.reflect.Method.invoke(Method.java:511)
05-23 14:48:49.960: E/AndroidRuntime(15384): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1006)
05-23 14:48:49.960: E/AndroidRuntime(15384): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773)
05-23 14:48:49.960: E/AndroidRuntime(15384): at dalvik.system.NativeStart.main(Native Method)
我不知道为什么会从 Google 的开箱即用示例代码中发生这种情况。有谁知道如何解决这一问题?
谢谢,杰森