我不熟悉使用其他库,但我正在处理的当前项目正在使用这个 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'.
看来我丢失了一些文件并且正在进行一些重新定义,但我不知道如何解决这个问题。尝试阅读他们的维基,但以我目前的理解,我无法从中获得任何有用的信息。
我究竟做错了什么?
[编辑] 使用 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 更新