Marry35
Marry35

Reputation: 415

Error while Building Android Application Project

I am having this strange problem while trying to create a new Android application project. Whenever I create a new Android application Project I get a Red Exclamation mark on it. I am also getting some Errors in the console about which I have no idea.

[2015-07-20 07:45:09 - ExampleProject] Found 2 versions of android-support-v4.jar in the dependency list,
[2015-07-20 07:45:09 - ExampleProject] but not all the versions are identical (check is based on SHA-1 only at this time).
[2015-07-20 07:45:09 - ExampleProject] All versions of the libraries must be the same at this time.
[2015-07-20 07:45:09 - ExampleProject] Versions found are:
[2015-07-20 07:45:09 - ExampleProject] Path: C:\Users\Umair Ahmed\workspace\ExampleProject\libs\android-support-v4.jar
[2015-07-20 07:45:09 - ExampleProject]  Length: 1184670
[2015-07-20 07:45:09 - ExampleProject]  SHA-1: fde22d8d2ef6363324a3d79a1dd16c8645c25564
[2015-07-20 07:45:09 - ExampleProject] Path: C:\Users\Umair Ahmed\workspace\appcompat_v7\libs\android-support-v4.jar
[2015-07-20 07:45:09 - ExampleProject]  Length: 1184450
[2015-07-20 07:45:09 - ExampleProject]  SHA-1: e19387dc3b060af32f5401f84fbe246635256955
[2015-07-20 07:45:09 - ExampleProject] Jar mismatch! Fix your dependencies
[2015-07-20 07:45:09 - ExampleProject] C:\Users\Umair 

In the past I used to fix it by deleting the Android dependencies folder which has a red cross on it. But now it is not working because then I get a red cross in the main src folder and that old (R cannot be resolved to a variable) error will appear. Being a beginner in Android I have no idea what to do with this thing. It just happens one day and goes after 1-2 weeks on its own. Any help will be appreciated. Nothing so far from other answers has worked and what used to work is now not working. Thanks.

Upvotes: 2

Views: 112

Answers (1)

Hugo Gresse
Hugo Gresse

Reputation: 17919

As you are still using Eclipse, the new AppCompat v7 come along with Android Support v4.

Remove your own ExampleProject\libs\android-support-v4.jar, clean the project and build.

Upvotes: 1

Related Questions