简体   繁体   English

Android出现错误将SlidingMenu添加到ecslipse中的项目

[英]Android get an error add SlidingMenu to project in ecslipse

after downloading jfeinstein10/SlidingMenu project from GitHub and import that to Eclipse, i'm created new project into eclipse and i want to add that to Projects and as library into Android section i get this error after Apply and OK : 从GitHub下载jfeinstein10 / SlidingMenu项目并将其导入Eclipse后,我将新项目创建到eclipse中,我想将其添加到Projects并作为库添加到Android部分中,在ApplyOK之后出现此错误:

[2014-10-05 12:22:20 - SlideMenuSample1] Found 2 versions of android-support-v4.jar in the dependency list,
[2014-10-05 12:22:20 - SlideMenuSample1] but not all the versions are identical (check is based on SHA-1 only at this time).
[2014-10-05 12:22:20 - SlideMenuSample1] All versions of the libraries must be the same at this time.
[2014-10-05 12:22:20 - SlideMenuSample1] Versions found are:
[2014-10-05 12:22:20 - SlideMenuSample1] Path: /home/tux-world/workspace/library/libs/android-support-v4.jar
[2014-10-05 12:22:20 - SlideMenuSample1]    Length: 385685
[2014-10-05 12:22:20 - SlideMenuSample1]    SHA-1: 48c94ae70fa65718b382098237806a5909bb096e
[2014-10-05 12:22:20 - SlideMenuSample1] Path: /home/tux-world/workspace/SlideMenuSample1/libs/android-support-v4.jar
[2014-10-05 12:22:20 - SlideMenuSample1]    Length: 758727
[2014-10-05 12:22:20 - SlideMenuSample1]    SHA-1: efec67655f6db90757faa37201efcee2a9ec3507
[2014-10-05 12:22:20 - SlideMenuSample1] Jar mismatch! Fix your dependencies

i'm try to resolve this problem but i can not do it. 我正在尝试解决此问题,但我做不到。 whats problem? 什么问题?

在此处输入图片说明

Yes you have two different version of android-support-v4.jar one in your project, one in lib project. 是的,您在项目中有两个不同版本的android-support-v4.jar,一个在lib项目中。 Thing what you do is not delete one of them, but go to Java Build Path menu -> Orders and Export and check android-support-v4.jar that you want to use in your project and uncheck otherwise. 您要做的事情不是删除其中之一,而是转到Java Build Path菜单-> Orders and Export,然后检查要在项目中使用的android-support-v4.jar,否则取消选中。

Hi you have two same android-support-v4.jar . 嗨,您有两个相同的android-support-v4.jar In SlidingMenu lib folder you have additional android-support-v4.jar just delete it.After you delete on of them clean and rebuild project. SlidingMenu lib文件夹中,您还有其他android-support-v4.jar只需将其删除即可。删除它们后清理并重建项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM