How to fix the error Unable to execute dex: several dex files define Lcom / google / android / gcm / GCMBaseIntentService ;?

I constantly get the following two errors:

[2012-12-09 21:39:50 - Dex Loader] Unable to execute dex: Multiple dex files define Lcom/google/android/gcm/GCMBaseIntentService; [2012-12-09 21:39:50 - TimeTable] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/google/android/gcm/GCMBaseIntentService; 

I am new to Android, so I have failed.

+4
source share
1 answer

I had the same problem. My mistake was that I used the same class name in the same package name as in the library in my project. When I delete this class and just use it in the library, everything works fine. therefore, try deleting the library or trying to exclude the GCMBaseIntentService class from the build path. hope this helps u

0
source

All Articles