动作条福尔摩斯没有被添加图书馆,日食? [英] ActionBar Sherlock not being added as library, eclipse?

查看:171
本文介绍了动作条福尔摩斯没有被添加图书馆,日食?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用我的应用程序添加操作栏福尔摩斯。将其添加为库。其中,它提供了以下错误。

I am trying to add the Action Bar Sherlock with my application. Adding it as library. Wherein it gives the following error.

    Found 3 versions of android-support-v4.jar in the dependency list,
    but not all the versions are identical (check is based on SHA-1 only at this time).
    All versions of the libraries must be the same at this time.
    Versions found are:
    Path: E:\VFCApps\SARGroup\libs\android-support-v4.jar
Length: 648327
SHA-1: ded9acc6a9792b8f1afc470f0c9cd36d178914cd
    Path: E:\VFCApps\appcompat_v7_2\libs\android-support-v4.jar
Length: 648327
SHA-1: ded9acc6a9792b8f1afc470f0c9cd36d178914cd
    Path: E:\VFCApps\actionbarsherlock\libs\android-support-v4.jar
Length: 271754
SHA-1: 53307dc2bd2b69fd5533458ee11885f55807de4b
    Jar mismatch! Fix your dependencies
    E:\VFCApps\appcompat_v7_2\res\values\attrs.xml:32: error: Attribute "windowActionBar" has already been defined
    E:\VFCApps\appcompat_v7_2\res\values\attrs.xml:33: error: Attribute "windowActionBarOverlay" has already been defined

等等...

在R.java自动从我的主要项目中删除有关添加库。

The R.java is deleted automatically from my main project on adding library.

推荐答案

复制 Android的支持 - v4.jar 从您的项目,将其粘贴在<$ C在 appcompat_v7_2 库文件夹>和 actionbarsherlock ,然后清理并生成所有。

Copy the android-support-v4.jar from your project and paste it in the libs folder in appcompat_v7_2 and actionbarsherlock and then clean and build them all.

这篇关于动作条福尔摩斯没有被添加图书馆,日食?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆