罐不匹配发现2个版本的Andr​​oid支持,v4.jar在依赖列表不匹配、版本、发现、列表

2023-09-11 12:05:34 作者:Somnus┊浅安时光

我想创建2个版本的Andr​​oid应用程序(免费/付费)。我有一个Android库,其中包含两个文件共有。我创建了一个新的Andr​​oid项目,并想使用图书馆,但得到的错误如下:

  Android的支持 -  v4.jar的依赖项列表中找到2个版本,
但不是所有的版本是相同的(仅检查在这个时间是基于SHA-1)。
所有版本的库必须相同,在这个时候。
发现版本:
路径:/用户/查希尔/开发商/ App免费/库/ Android的支持,v4.jar
    长度:349252
    SHA-1:612846c9857077a039b533718f72db3bc041d389
路径:/用户/查希尔/开发/应用程序库/库/ Android的支持,v4.jar
    长度:337562
    SHA-1:27c24d26e4c5d57976e6926367985548678e913c
 

在如何解决这个任何想法?我一直在玩的构建路径没有成功。

解决方案   

在如何解决这个任何想法?

删除之一。

  

我一直在玩的构建路径没有成功。

步骤#1:撤消了这一切。如果你搞乱了构建路径,在R16或ADT插件为Eclipse的更高的版本,你就错了。

步骤2:选择这两个版本的JAR文件中的一个,或选择从您的SDK安装的额外区域中的一个

第三步:把正确的JAR的应用库

第四步:删除 App免费,一来因为它会拿起从应用库的JAR

欢迎您,而不是在这两个点在同一实际JAR文件( App免费应用库) ,尽管这只是占用额外无缘无故的空间。

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?

Delete one.

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

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.

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

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

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

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.