试图在eclipse ADT中运行一个项目,但继续得到一个巨大的xml错误列表

时间:2014-12-11 13:50:02

标签: android google-play-services

我将一个Android项目导入了我的eclipse工作区,但是我收到了以下错误。我搜索了一个解决方案,但没有找到一个。请有人能指出我正确的方向吗?提前谢谢!

C:\Development\adt-bundle-windows-x86\sdk\extras\google\google_play_services\libproject\google-play-services_lib\res\values\maps_attrs.xml:5: error: Attribute "mapType" has already been defined
C:\Development\adt-bundle-windows-x86\sdk\extras\google\google_play_services\libproject\google-play-services_lib\res\values\maps_attrs.xml:12: error: Attribute "cameraBearing" has already been defined
C:\Development\adt-bundle-windows-x86\sdk\extras\google\google_play_services\libproject\google-play-services_lib\res\values\maps_attrs.xml:13: error: Attribute "cameraTargetLat" has already been defined
C:\Development\adt-bundle-windows-x86\sdk\extras\google\google_play_services\libproject\google-play-services_lib\res\values\maps_attrs.xml:14: error: Attribute "cameraTargetLng" has already been defined
C:\Development\adt-bundle-windows-x86\sdk\extras\google\google_play_services\libproject\google-play-services_lib\res\values\maps_attrs.xml:15: error: Attribute "cameraTilt" has already been defined
C:\Development\adt-bundle-windows-x86\sdk\extras\google\google_play_services\libproject\google-play-services_lib\res\values\maps_attrs.xml:16: error: Attribute "cameraZoom" has already been defined
C:\Development\adt-bundle-windows-x86\sdk\extras\google\google_play_services\libproject\google-play-services_lib\res\values\maps_attrs.xml:17: error: Attribute "uiCompass" has already been defined
C:\Development\adt-bundle-windows-x86\sdk\extras\google\google_play_services\libproject\google-play-services_lib\res\values\maps_attrs.xml:18: error: Attribute "uiRotateGestures" has already been defined
C:\Development\adt-bundle-windows-x86\sdk\extras\google\google_play_services\libproject\google-play-services_lib\res\values\maps_attrs.xml:19: error: Attribute "uiScrollGestures" has already been defined
C:\Development\adt-bundle-windows-x86\sdk\extras\google\google_play_services\libproject\google-play-services_lib\res\values\maps_attrs.xml:20: error: Attribute "uiTiltGestures" has already been defined
C:\Development\adt-bundle-windows-x86\sdk\extras\google\google_play_services\libproject\google-play-services_lib\res\values\maps_attrs.xml:21: error: Attribute "uiZoomControls" has already been defined
C:\Development\adt-bundle-windows-x86\sdk\extras\google\google_play_services\libproject\google-play-services_lib\res\values\maps_attrs.xml:22: error: Attribute "uiZoomGestures" has already been defined
C:\Development\adt-bundle-windows-x86\sdk\extras\google\google_play_services\libproject\google-play-services_lib\res\values\maps_attrs.xml:23: error: Attribute "useViewLifecycle" has already been defined
C:\Development\adt-bundle-windows-x86\sdk\extras\google\google_play_services\libproject\google-play-services_lib\res\values\maps_attrs.xml:24: error: Attribute "zOrderOnTop" has already been defined

修改

这是我的Android项目属性:

enter image description here

2 个答案:

答案 0 :(得分:1)

删除项目库列表中的google-play-services的两个版本之一。

答案 1 :(得分:1)

您要导入google-play服务库两次 - 以及两个不同版本(一个在屏幕截图中标记为“froyo”)。

可能删除旧的,它会没事的。但问题是你不能两次和不同地定义资源。有时您可以使用两次并定义相同的内容,有时构建将不会检测Eclipse中的重复项。