【发布时间】:2015-09-30 15:16:33
【问题描述】:
我正在使用 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 支持 v4,这是我当前的构建路径:
*有时当我取消选中 Private Libraries 清理并再次重新选中此选项时,应用程序可以正常工作(但没有通知幸运)。
support v4 jar在libs文件夹下,路径正确(MyApp/libs)
我即将发布更新,我的应用程序已经在 pushbots 服务器上运行/运行(带有注册设备和所有设备),所以我想解决这个问题以发布我的更新。谢谢。
【问题讨论】:
-
您使用的是哪个版本的 android-support-v4.jar?我还看到有两个同名的罐子
-
你在使用 Proguard 吗?
标签: android-support-library noclassdeffounderror pushbots