import google-play-services_lib to my workspace but giving error in all values folder i had clean project change Google API, add google-play-services.jar file, restart eclipse but yet errors
in console display error like below
[2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\ads_attrs.xml:10: error: Attribute "adSize" has already been defined
[2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\ads_attrs.xml:17: error: Attribute "adSizes" has already been defined
[2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\ads_attrs.xml:20: error: Attribute "adUnitId" has already been defined
[2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\common_colors.xml:4: error: Resource entry common_signin_btn_dark_text_default is already defined.
[2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\colors.xml:4: Originally defined here.
[2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\common_colors.xml:5: error: Resource entry common_signin_btn_dark_text_pressed is already defined.
[2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\colors.xml:5: Originally defined here.
[2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\common_colors.xml:6: error: Resource entry common_signin_btn_dark_text_disabled is already defined.
[2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\colors.xml:6: Originally defined here.
[2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\common_colors.xml:7: error: Resource entry common_signin_btn_dark_text_focused is already defined.
[2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\colors.xml:7: Originally defined here.
[2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\common_colors.xml:8: error: Resource entry common_signin_btn_light_text_default is already defined.
[2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\colors.xml:8: Originally defined here.
[2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\common_colors.xml:9: error: Resource entry common_signin_btn_light_text_pressed is already defined.
[2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\colors.xml:9: Originally defined here.
[2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\common_colors.xml:10: error: Resource entry common_signin_btn_light_text_disabled is already defined.
[2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\colors.xml:10: Originally defined here.
[2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\common_colors.xml:11: error: Resource entry common_signin_btn_light_text_focused is already defined.
[2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\colors.xml:11: Originally defined here.
[2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\common_colors.xml:12: error: Resource entry common_signin_btn_default_background is already defined.
[2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\colors.xml:12: Originally defined here.
[2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\common_colors.xml:13: error: Resource entry common_action_bar_splitter is already defined.
[2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\colors.xml:13: Originally defined here.
[2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\strings.xml:6: error: Resource entry common_google_play_services_install_title is already defined.
[2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\common_strings.xml:21: Originally defined here.
[2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\strings.xml:10: error: Resource entry common_google_play_services_install_text_phone is already defined.
[2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\common_strings.xml:25: Originally defined here.
Try to import library without adding to workspace. In my case that was a solution.
I ran into the same issue for colors.xml, it was because this file does not seem to be present anymore. The colors it contains before are now declared in common_colors.xml. Perhaps you want to delete your previous Google Play Services folder from your project to do a fresh copy.
Try to import library from same folder where project exist without adding to workspace.
This error cropped up for me when I was trying to update my version of google play services. The full process that worked for me was to delete the original project, remove all references to the play services project from my other projects in the workspace (i.e. open the project properties and remove play services as a referenced Android library project), then import the play services project. I can't remember if I did Import Existing Projects into Workspace
or Import Existing Android Code
.
The trick that got rid of the "originally defined here" errors was to first remove the existing old references to the project.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With