implement push notification in android app

时间:2015-07-31 20:04:22

标签: android eclipse push-notification google-cloud-messaging

I know there are many question relating this, but i am still helpless here.

I need to implement push notification in an android app. It requires setting up google play services, when i do that it errors our with

Unable to execute dex: method ID not in [0, 0xffff]: 65536 Conversion to Dalvik format failed: Unable to execute dex: method ID not in [0, 0xffff]: 65536

Proguard and stripping google play services doesnt work out well.

Is there any way to implement push notification without referencing google play services. I am using Eclipse with ADT. Runtime and SDK is API 22. Any tutorial for this will be helpful.

1 个答案:

答案 0 :(得分:0)

I am afraid that you have reached the dex limit in android which means your project contains more than maximum number of methods allowed by framework which is the Integer datatype size.

Using the ADT and eclipse solving this problem might not be feasible, Please try porting your project to Android Studio(Gradle) as it provides a way to have support for multidex files.

please refer this, I hope it helps.