java索引后的java.lang.NoClassDefFoundError城市飞艇

时间:2015-06-08 08:43:14

标签: java android android-gradle urbanairship.com multidex

我在kitkat三星平板电脑和kitkat三星手机上运行我的应用程序但是没有在5.1 nexus 5上运行时出现以下错误

java.lang.NoClassDefFoundError: com.urbanairship.R$string
        at com.urbanairship.push.NotificationActionButtonGroupFactory.createUrbanAirshipGroups(NotificationActionButtonGroupFactory.java:40)
        at com.urbanairship.push.PushManager.<init>(PushManager.java:224)
        at com.urbanairship.push.PushManager.<init>(PushManager.java:212)
        at com.urbanairship.UAirship.<init>(UAirship.java:109)
        at com.urbanairship.UAirship.executeTakeOff(UAirship.java:323)
        at com.urbanairship.UAirship.access$000(UAirship.java:55)
        at com.urbanairship.UAirship$2.run(UAirship.java:280)
        at java.lang.Thread.run(Thread.java:856)

在使用multidex之前,应用程序运行正常但是在添加了一个大型库并且必须使用multidex之后我得到了这个错误

0 个答案:

没有答案