与aws GCMIntentService Noclassdeffounderror一起使用时,gcm无法正常工作

时间:2017-07-19 19:06:50

标签: android amazon-web-services google-cloud-messaging

我正在编写Android应用程序,它使用谷歌云消息传递(GCM)注册和AWS S3用于不同目的。当我在构建路径上安装了sjs文件时,我的应用程序崩溃,并且在GCMIntentService上调用了方法寄存器。显示的错误是:

 FATAL EXCEPTION: main
                                                                    Process: com.mydomain.mypackage, PID: 30234
                                                                    java.lang.NoClassDefFoundError: com.mydomain.myPackage.GCMIntentService
                                                                        at com.mydomain.myPackage.MainActivity.onCreate(MainActivity.java:31)
                                                                        at android.app.Activity.performCreate(Activity.java:6010)
                                                                        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1129)
                                                                        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2292)
                                                                        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2413)
                                                                        at android.app.ActivityThread.access$800(ActivityThread.java:155)
                                                                        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1317)
                                                                        at android.os.Handler.dispatchMessage(Handler.java:102)
                                                                        at android.os.Looper.loop(Looper.java:135)
                                                                        at android.app.ActivityThread.main(ActivityThread.java:5343)
                                                                        at java.lang.reflect.Method.invoke(Native Method)
                                                                        at java.lang.reflect.Method.invoke(Method.java:372)
                                                                        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
                                                                        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)

0 个答案:

没有答案