我使用 PushBots 来管理我的应用程序的推送通知,我一直在为许多应用程序使用这个惊人的平台,这是我第一次遇到这样的问题。
有时,当我启动应用程序时,我会收到此错误,但总是在接收推送时(在应用程序内或打开的情况下)。
07-12 01:20:00.844: E/AndroidRuntime(12140): FATAL EXCEPTION: IntentService[GCMIntentService-326*****5*9-1]
07-12 01:20:00.844: E/AndroidRuntime(12140): Process: com.karlol.mo***, PID: 12140
07-12 01:20:00.844: E/AndroidRuntime(12140): java.lang.NoClassDefFoundError: android.support.v4.app.NotificationManagerCompat
> //This is just the beginning of the log, there's more with some
> Pushbots handler info and stuff.... Let me know if I need to post it,
> its a lot.
我很确定这是关于 android support v4,这是我当前的构建路径:
*有时,当我取消选中 Private Libraries clean 并再次重新选中此选项时,该应用程序可以正常工作(但通知并不幸运)。
support v4 jar在libs文件夹下,路径正确(MyApp/libs)
我即将发布更新,我的应用程序已经在使用 pushbots 服务器(带有注册设备和所有设备)工作/运行,所以我想解决这个问题以发布我的更新。谢谢。
最佳答案
在构建路径或属性中选中以下 jars,它将起作用
1. android-support-v4.jar(appcombat/ibs)
2.android-support-v4-appcombat.jar(appcombat/ibs)
关于android-support-library - NoClassDefFoundError: android.support.v4.app 发送推送时?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31365056/