2

I am trying to add a slide menu to my android application.

  • Imported the android library into workspace
  • In my application project properties under android I clicked "Add" and added the library to my application
  • Clicked "Apply" and then "Ok"

If I go to properties -> Android again the library I just added is not there anymore. What could cause this?

After adding library: enter image description here

After going to properties again: enter image description here

Edit:

I ended up adding the project manually in project.properties

android.library.reference.2=../SlideMenu

And now it tells me what the problem is. Any idea how to resolve this?

[2013-10-06 19:57:15 - AtlasMobile] Jar mismatch! Fix your dependencies [2013-10-06 19:57:25 - AtlasMobile] Found 3 versions of android-support-v4.jar in the dependency list, [2013-10-06 19:57:25 - AtlasMobile] but not all the versions are identical (check is based on SHA-1 only at this time). [2013-10-06 19:57:25 - AtlasMobile] All versions of the libraries must be the same at this time. [2013-10-06 19:57:25 - AtlasMobile] Versions found are:

4

2 回答 2

2

罐子不匹配!修复您的依赖项... 在依赖项列表中找到 3 个版本的 android-support-v4.jar,但并非所有版本都相同(此时检查仅基于 SHA-1)。此时所有版本的库必须相同。

似乎其中一个库正在使用旧版本的android-support-v4.jar. 请检查库项目是否有可用的更新,库的维护者可能已经更新了android-support-v4.jar.

如果上述方法没有帮助,我会复制android-support-v4.jarSDK 附带的内容并粘贴到库项目中。

于 2013-10-07T03:27:11.740 回答
0

检查您的 java 构建路径检查您在项目中导入的所有库。最后点击确定。

于 2013-10-07T09:35:04.043 回答