John R
John R

Reputation: 2064

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

When I add appcompat project as a library I get these errors:

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

- `aapt.exe` has stop working.

How to solve this?

Upvotes: 13

Views: 20379

Answers (3)

InnocentKiller
InnocentKiller

Reputation: 5234

I too had same problem just few day's back and what i did is, just deleted the android-support-v4.jar from my project, and then i have added my library project jar by right clicking my project -> go to properties, select java Build Path and then select add external jar from the option and select android-support-v4.jar from your library project and then click on Order and export and check mark android-support-v4.jar that you have added from library project and then press Ok.

That's it. Enjoy Coding

Upvotes: 2

John R
John R

Reputation: 2064

Delete android-support-v4.jar from library and project. Then go in <sdk>/extras/android/support/samples/Support4Demos/ and copy android-support-v4.jar and paste in libs folder of both.

Upvotes: 25

user3243163
user3243163

Reputation: 408

Generally you get this error when you add external library which already contains android-support-v4.jarfile.

Here you can delete this android-support-v4.jar file from your libs folder. This will solve your problem.

Upvotes: 12

Related Questions