Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 787
John R Avatar asked Jan 30 '14 07:01

John R


2 Answers

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.

like image 163
John R Avatar answered Oct 11 '22 22:10

John R


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.

like image 42
user3243163 Avatar answered Oct 11 '22 22:10

user3243163