Steps to reproduce:
- create a android project "MyApp"
- import ActionBarSherlock(ABS),Directional ViewPager(DVP), or any other open source library which use android support library.
- Add the libraries to the project "MyApp"
Console log:
[2013-04-17 14:27:12 - MyApp] Found 2 versions of android-support-v4.jar in the dependency list,
[2013-04-17 14:27:12 - MyApp] but not all the versions are identical (check is based on SHA-1 only at this time).
[2013-04-17 14:27:12 - MyApp] All versions of the libraries must be the same at this time.
[2013-04-17 14:27:12 - MyApp] Versions found are:
[2013-04-17 14:27:12 - MyApp] Path: C:UserssanthoshMy_WorkspaceDVP_librarylibsandroid-support-v4.jar
[2013-04-17 14:27:12 - MyApp] Length: 140011
[2013-04-17 14:27:12 - MyApp] SHA-1: fc834ac8147bc4ed0b555f90f500a57d4232c448
[2013-04-17 14:27:12 - MyApp] Path: C:UserssanthoshMy_Workspaceabs_librarylibsandroid-support-v4.jar
[2013-04-17 14:27:12 - MyApp] Length: 271754
[2013-04-17 14:27:12 - MyApp] SHA-1: 53307dc2bd2b69fd5533458ee11885f55807de4b
[2013-04-17 14:27:12 - MyApp] Jar mismatch! Fix your dependencies
I know i am suppose to delete android-support-v4.jar from libs folder and keep only one copy for all.
But, that is not solving my problem.
When i try to delete the android-support-v4.jar from MyApp, it gives me the following error.
Problems encountered while deleting resources.
Could not delete 'C:UserssanthoshMy_WorkspaceMyApplibsandroid-support-v4.jar'.
When I try to delete the android-support-v4.jar from ABS, it gives me the following error
????? cannot be resolved to a type error.
I have tried to clean the project, Fix Project Properties. Restart eclipse, Build, import and add again. I have tried to copy the support jar in libs folder from one library to other. delete the support jar in both libraries and add it to the MyApp project. Nothing has worked for me.
if i try to add single library, it works fine. i am facing the problem when trying to add 2 or more libraries to a single project.
error getting when I add two libraries in MyApp:
The project was not built since its build path is incomplete.
Cannot find the class file for android.support.v4.app.FragmentActivity.
Fix the build path then try building this project MyApp Unknown Java Problem
The type android.support.v4.app.FragmentActivity cannot be resolved. It is indirectly referenced from required .class files MyActivity.java/MyApp/src/com/santhosh/myapp line 10 Java Problem
Jar mismatch! Fix your dependencies MyApp Unknown Android Dependency Problem
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…