Steps to play:
- create an android project "MyApp"
- Import an ActionBarSherlock (ABS), Directional ViewPager (DVP), or any other open source library that uses the Android support library.
- Add libraries to the MyApp project
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:\Users\santhosh\My_Workspace\DVP_library\libs\android-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:\Users\santhosh\My_Workspace\abs_library\libs\android-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 that I want to remove android-support-v4.jar from the libs folder and save only one copy for everyone. But that does not solve my problem.
When I try to remove android-support-v4.jar from MyApp , it gives me the following error.
Problems encountered while deleting resources. Could not delete 'C:\Users\santhosh\My_Workspace\MyApp\libs\android-support-v4.jar'.
When I try to remove android-support-v4.jar from ABS , it gives me the following error
????? cannot be resolved to a type error.
I tried to clean the project, Fix project properties. Restart eclipse, create, import and add again. I tried to copy the support jar to the libs folder from one library to another. delete the support jar in both libraries and add it to the MyApp project. Nothing worked for me.
if I try to add one library, it works fine. I encountered a problem while trying to add 2 or more libraries to one project.
Error adding two libraries to 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
android eclipse jar
SKK Apr 17 '13 at 9:51 on 2013-04-17 09:51
source share