简体   繁体   中英

Jar dependency error when importing android project

I am trying to import an external project into Eclipse for further coding. Once the project was import, following errors were found:

found 2 versions of android-support-v4.jar in the dependency list appcompat in  android. 

Then, I have studied this link and found the solution. Found 2 versions of android-support-v4.jar in the dependency list appcompat in android

I have deleted the android-support-v4.jar in library folder of the project but I cannot find <sdk>/extras/android/support/samples/Support4Demos/ and copy android-support-v4.jar to replace the original file. Can anyone tell me the location???

Besides, are there any standard steps for importing an android project in the latest version of adt?? I find that there are many people has the similar problem but the solutions provided by others were so different. I am a bit lost about the correct steps.

I had the same problem and I fixed it really easy way: Firstly, I've checked which of the libraries android-support-v4.jar was the last updated. Generally, you can check the modification date and also the size of the file (normally, not always, the last version is heavier than the older versions).

Ok, you already have the last one? ok, replace (copy/paste) this .jar file in all the projects . The error will dissapear.

At least, for me was the solution. You need to have the same .jar file in all the projects imported and main project.

Clean all the project and build again!!!!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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