我是新手使用其他库,但我正在处理的当前项目是使用此HoloEverywhere库。不幸的是,没有文件从我的库中提供给我,所以我必须自己下载。我克隆了git存储库,但是当我将HoloEverywhere文件夹添加到我的Eclipse工作区时,我收到大量的错误消息,如下所示:
[2012-12-08 13:46:51 - HoloEverywhere Demo] D:\Downloads\HoloEverywhere\library\res\values\styles.xml:662: error: Resource entry Holo.Theme already has bag item textAppearanceListItemSmall.
[2012-12-08 13:46:51 - HoloEverywhere Demo] D:\Downloads\HoloEverywhere\library\res\values\styles.xml:638: Originally defined here.
[2012-12-08 13:46:51 - HoloEverywhere Demo] D:\Downloads\HoloEverywhere\library\res\values-v14\styles.xml:61: error: Resource entry Holo.Theme already has bag item textAppearanceListItemSmall.
[2012-12-08 13:46:51 - HoloEverywhere Demo] D:\Downloads\HoloEverywhere\library\res\values-v14\styles.xml:37: Originally defined here.
[2012-12-08 13:46:51 - HoloEverywhere Demo D:\Downloads\HoloEverywhere\library\res\values\styles.xml:602: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.Sherlock'.
[2012-12-08 13:46:51 - HoloEverywhere Demo] D:\Downloads\HoloEverywhere\library\res\values\styles.xml:667: error: Error: No resource found that matches the given name: attr 'activatedBackgroundIndicator'.
[2012-12-08 13:46:51 - HoloEverywhere Demo] D:\Downloads\HoloEverywhere\library\res\values\styles.xml:615: error: Error: No resource found that matches the given name: attr 'dividerVertical'.
[2012-12-08 13:46:51 - HoloEverywhere Demo] D:\Downloads\HoloEverywhere\library\res\values\styles.xml:650: error: Error: No resource found that matches the given name: attr 'dropDownListViewStyle'.
[2012-12-08 13:46:51 - HoloEverywhere Demo] D:\Downloads\HoloEverywhere\library\res\values\styles.xml:616: error: Error: No resource found that matches the given name: attr 'dropdownListPreferredItemHeight'.
[2012-12-08 13:46:51 - HoloEverywhere Demo] D:\Downloads\HoloEverywhere\library\res\values\styles.xml:652: error: Error: No resource found that matches the given name: attr 'listPopupWindowStyle'.
[2012-12-08 13:46:51 - HoloEverywhere Demo] D:\Downloads\HoloEverywhere\library\res\values\styles.xml:621: error: Error: No resource found that matches the given name: attr 'listPreferredItemHeightSmall'.
[2012-12-08 13:46:51 - HoloEverywhere Demo] D:\Downloads\HoloEverywhere\library\res\values\styles.xml:680: error: Error: No resource found that matches the given name: attr 'listPreferredItemPaddingLeft'.
[2012-12-08 13:46:51 - HoloEverywhere Demo] D:\Downloads\HoloEverywhere\library\res\values\styles.xml:681: error: Error: No resource found that matches the given name: attr 'listPreferredItemPaddingRight'.
[2012-12-08 13:46:51 - HoloEverywhere Demo] D:\Downloads\HoloEverywhere\library\res\values\styles.xml:654: error: Error: No resource found that matches the given name: attr 'selectableItemBackground'.
[2012-12-08 13:46:51 - HoloEverywhere Demo] D:\Downloads\HoloEverywhere\library\res\values\styles.xml:655: error: Error: No resource found that matches the given name: attr 'spinnerDropDownItemStyle'.
[2012-12-08 13:46:51 - HoloEverywhere Demo] D:\Downloads\HoloEverywhere\library\res\values\styles.xml:656: error: Error: No resource found that matches the given name: attr 'spinnerItemStyle'.
[2012-12-08 13:46:51 - HoloEverywhere Demo] D:\Downloads\HoloEverywhere\library\res\values\styles.xml:660: error: Error: No resource found that matches the given name: attr 'textAppearanceLargePopupMenu'.
[2012-12-08 13:46:51 - HoloEverywhere Demo] D:\Downloads\HoloEverywhere\library\res\values\styles.xml:638: error: Error: No resource found that matches the given name: attr 'textAppearanceListItemSmall'.
[2012-12-08 13:46:51 - HoloEverywhere Demo] D:\Downloads\HoloEverywhere\library\res\values\styles.xml:663: error: Error: No resource found that matches the given name: attr 'textAppearanceSmallPopupMenu'.
似乎我缺少一些文件,并且有一些重新定义正在进行,但我不知道如何解决这个问题。尝试阅读他们的wiki,但凭借我目前的理解,我无法从中获得任何有用的东西。
我做错了什么?
[编辑] 使用git时,我无法执行此步骤:
git clone git://github.com/ChristopheVersieux/HoloEverywhere.git HoloEverywhere
cd HoloEverywhere
git submodule --init --recursive update
在最后一部分我收到此错误:
我使用msysgit,第一部分我设法下载文件,但我无法继续更新,所以我想我的第一个问题就在那里。我可以使用其他命令吗?我对git没有任何经验。
[EDIT2] 我安装Ubuntu只是为了检查它是否与windows版本的git有些问题,但是没有,我仍然在这行上出错:
git submodule --init --recursive update
答案 0 :(得分:5)
问题是我缺乏使用git的经验。 我不知道为什么作者写了这样的命令:
git submodule --init --recursive update
但是在linux和windows上我必须输入:
git submodule init
和
git submodule update --recursive