Error while using android in eclipse

Asked

Viewed 84 times

-1

I’m starting to learn to program with android and right away I came across this mistake, what to do?

Displays this error in the console:

[2016-03-25 18:09:34 - TransicaoEntreTelas] Found 2 versions of android-support-v4.jar in the dependency list,

[2016-03-25 18:09:34 - TransicaoEntreTelas] but not all the versions are identical (check is based on SHA-1 only at this time).

[2016-03-25 18:09:34 - TransicaoEntreTelas] All versions of the libraries must be the same at this time.

[2016-03-25 18:09:34 - TransicaoEntreTelas] Versions found are:

[2016-03-25 18:09:34 - TransicaoEntreTelas] Path: C:\Users\Guilherme\Documents\EclipseProjects\appcompat_v7\libs\android-support-v4.jar

[2016-03-25 18:09:34 - TransicaoEntreTelas]     Length: 1074044

[2016-03-25 18:09:34 - TransicaoEntreTelas]     SHA-1: 33b27a8d2a5b87e6eb6c60e87a5374ffbfeacc3a

[2016-03-25 18:09:34 - TransicaoEntreTelas] Path: C:\Users\Guilherme\Documents\EclipseProjects\TransicaoEntreTelas\libs\android-support-v4.jar

[2016-03-25 18:09:34 - TransicaoEntreTelas]     Length: 1422188

[2016-03-25 18:09:34 - TransicaoEntreTelas]     SHA-1: 1dc1f63cee098b27db60b9a2833fd7ca58f89636

[2016-03-25 18:09:34 - TransicaoEntreTelas] Jar mismatch! Fix your dependencies

[2016-03-25 18:09:34 - TransicaoEntreTelas] Found 2 versions of android-support-v4.jar in the dependency list,

[2016-03-25 18:09:34 - TransicaoEntreTelas] but not all the versions are identical (check is based on SHA-1 only at this time).

[2016-03-25 18:09:34 - TransicaoEntreTelas] All versions of the libraries must be the same at this time.

[2016-03-25 18:09:34 - TransicaoEntreTelas] Versions found are:

[2016-03-25 18:09:34 - TransicaoEntreTelas] Path: C:\Users\Guilherme\Documents\EclipseProjects\appcompat_v7\libs\android-support-v4.jar

[2016-03-25 18:09:34 - TransicaoEntreTelas]     Length: 1074044

[2016-03-25 18:09:34 - TransicaoEntreTelas]     SHA-1: 33b27a8d2a5b87e6eb6c60e87a5374ffbfeacc3a

[2016-03-25 18:09:34 - TransicaoEntreTelas] Path: C:\Users\Guilherme\Documents\EclipseProjects\TransicaoEntreTelas\libs\android-support-v4.jar

[2016-03-25 18:09:34 - TransicaoEntreTelas]     Length: 1422188

[2016-03-25 18:09:34 - TransicaoEntreTelas]     SHA-1: 1dc1f63cee098b27db60b9a2833fd7ca58f89636

[2016-03-25 18:09:34 - TransicaoEntreTelas] Jar mismatch! Fix your dependencies

[2016-03-25 18:09:35 - TransicaoEntreTelas] Found 2 versions of android-support-v4.jar in the dependency list,

[2016-03-25 18:09:35 - TransicaoEntreTelas] but not all the versions are identical (check is based on SHA-1 only at this time).

[2016-03-25 18:09:35 - TransicaoEntreTelas] All versions of the libraries must be the same at this time.

[2016-03-25 18:09:35 - TransicaoEntreTelas] Versions found are:

[2016-03-25 18:09:35 - TransicaoEntreTelas] Path: C:\Users\Guilherme\Documents\EclipseProjects\appcompat_v7\libs\android-support-v4.jar

[2016-03-25 18:09:35 - TransicaoEntreTelas]     Length: 1074044

[2016-03-25 18:09:35 - TransicaoEntreTelas]     SHA-1: 33b27a8d2a5b87e6eb6c60e87a5374ffbfeacc3a

[2016-03-25 18:09:35 - TransicaoEntreTelas] Path: C:\Users\Guilherme\Documents\EclipseProjects\TransicaoEntreTelas\libs\android-support-v4.jar

[2016-03-25 18:09:35 - TransicaoEntreTelas]     Length: 1422188

[2016-03-25 18:09:35 - TransicaoEntreTelas]     SHA-1: 1dc1f63cee098b27db60b9a2833fd7ca58f89636

[2016-03-25 18:09:35 - TransicaoEntreTelas] Jar mismatch! Fix your dependencies

Follow the error screenshot below:

Erro eclipse com android

  • 3

    Paste error text, view by image becomes difficult.

  • Okay, I copied the bug on the console. I’m on hold. Thanks

  • @Guilherme do not use the eclipse. For android the tool that has all the support is Android Studio. http://developer.android.com/intl/pt-br/sdk/index.html

1 answer

0

as Caique Oliveira mentioned, if you’re starting with Android, use Android Studio. Because it’s supported by Google since last year, and incorporates the Gradle system to compile and manage your projects and libs.

What it seems to me is that you have two projects in Eclipse both with the same lib (android-support-v4.jar ) and are conflicting with each other.

Simple fix: remove one of the libs that should work. Fix better: install android studio and Gradle and you will no longer have these problems :)

Happy coding :D

Browser other questions tagged

You are not signed in. Login or sign up in order to post.