我遇到Android Studio问题。我正在使用Parse并添加了我的应用程序和客户端密钥。但是当使用模拟器时,我收到此消息。有谁知道可能的问题?
01-30 10:27:40.466 1100-1100/ex.co.uk.ex E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: ex.co.uk.ex, PID: 1100
java.lang.NoClassDefFoundError: bolts.Task
at com.parse.ParseInstallation.hasCurrentInstallationAsync(ParseInstallation.java:90)
at com.parse.GcmRegistrar.updateAsync(GcmRegistrar.java:96)
at com.parse.Parse.initialize(Parse.java:163)
at ex.co.uk.ex.ParseApplication.onCreate(ParseApplication.java:17)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1007)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4344)
at android.app.ActivityThread.access$1500(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)
答案 0 :(得分:2)
将其添加到依赖项部分中的应用程序gradle文件中。然后同步和构建&再次运行。
compile 'com.parse.bolts:bolts-android:1.1.2'