Jar Mismatch 在依赖列表中找到 2 个版本的 android-support-v4.jar [英] Jar Mismatch Found 2 versions of android-support-v4.jar in the dependency list

查看:20
本文介绍了Jar Mismatch 在依赖列表中找到 2 个版本的 android-support-v4.jar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建 2 个版本的 Android 应用程序(免费/付费).我有一个 Android 库,其中包含两者共有的文件.我创建了一个新的 Android 项目并尝试使用该库,但出现以下错误:

I am trying to create 2 versions of an Android app (free/paid). I have an Android Library that contains files common to both. I created a new Android project and am trying to use the Library but get the error below:

Found 2 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: /Users/Zaheer/Developer/App Free/libs/android-support-v4.jar
    Length: 349252
    SHA-1: 612846c9857077a039b533718f72db3bc041d389
Path: /Users/Zaheer/Developer/App Library/libs/android-support-v4.jar
    Length: 337562
    SHA-1: 27c24d26e4c5d57976e6926367985548678e913c

有关如何解决此问题的任何想法?我一直在尝试构建路径,但没有成功.

Any ideas on how to resolve this? I've been playing with the build path to no success.

推荐答案

关于如何解决这个问题有什么想法吗?

Any ideas on how to resolve this?

删除一个.

我一直在尝试构建路径,但没有成功.

I've been playing with the build path to no success.

第 1 步:撤消所有这些.如果您弄乱了构建路径,在 R16 或更高版本的 Eclipse ADT 插件上,您就做错了.

Step #1: Undo all that. If you are messing with the build path, on R16 or higher version of the ADT plugin for Eclipse, you're doing it wrong.

第 2 步:从这两个 JAR 版本中选择一个,或者从 SDK 安装的附加"区域选择一个.

Step #2: Pick one of those two versions of the JAR, or pick the one from the "extras" area of your SDK installation.

第 3 步:将正确的 JAR 放入 App Library.

Step #3: Put the right JAR in App Library.

第 4 步:从 App Free 中删除该 JAR,因为它将从 App Library 中提取该 JAR.

Step #4: Delete the one from App Free, since it will pick up that JAR from App Library.

欢迎您在两个位置(App FreeApp Library)使用相同的实际 JAR 文件,尽管这会无缘无故地占用额外的空间.

You are welcome to instead have the same actual JAR file in both spots (App Free and App Library), though that just takes up extra space for no reason.

这篇关于Jar Mismatch 在依赖列表中找到 2 个版本的 android-support-v4.jar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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