android - How to Import the Facebook SDK to exisitng app without errors -


please go easy on me im still new eclispe software etc.... ok problem have importing facebook sdk. programmed little app , retropsectively thought allow users post facebook it. imported sdk. added library project , following errors

[ 2013-07-15 09:37:58 - myapp] not versions identical (check based on sha-1 @ time). [2013-07-15 09:37:58 - myapp] versions of libraries must same @ time. [2013-07-15 09:37:58 - myapp] versions found are: [2013-07-15 09:37:58 - myapp] path: c:\myapp\libs\android-support-v4.jar [2013-07-15 09:37:58 - myapp]   length: 484258 [2013-07-15 09:37:58 - myapp]   sha-1: bd6479f5dd592790607e0504e66e0f31c2b4d308 [2013-07-15 09:37:58 - myapp] path: c:\googledevelopement\facebook-android-sdk-3.0.2\facebook\libs\android-support-v4.jar [2013-07-15 09:37:58 - myapp]   length: 349252 [2013-07-15 09:37:58 - myapp]   sha-1: 612846c9857077a039b533718f72db3bc041d389 [2013-07-15 09:37:58 - myapp] jar mismatch! fix dependencies [2013-07-15 09:37:59 - myapp] found 2 versions of android-support-v4.jar in dependency list, [2013-07-15 09:37:59 - myapp] not versions identical (check based on sha-1 @ time). [2013-07-15 09:37:59 - myapp] versions of libraries must same @ time. [2013-07-15 09:37:59 - myapp] versions found are: [2013-07-15 09:37:59 - myapp] path: c:\myapp\libs\android-support-v4.jar [2013-07-15 09:37:59 - myapp]   length: 484258 [2013-07-15 09:37:59 - myapp]   sha-1: bd6479f5dd592790607e0504e66e0f31c2b4d308 [2013-07-15 09:37:59 - myapp] path: c:\googledevelopement\facebook-android-sdk-3.0.2\facebook\libs\android-support-v4.jar [2013-07-15 09:37:59 - myapp]   length: 349252 [2013-07-15 09:37:59 - myapp]   sha-1: 612846c9857077a039b533718f72db3bc041d389 [ 2013-07-15 09:37:59 - myapp] jar mismatch! fix dependencies  2013-07-15 09:37:59 - myapp] jar mismatch! fix dependencies 

i have read on other threads (just delete jar file) did ... got lots of errors in facebook project (108 precise) here few:

description resource    path    location    type localbroadcastmanager cannot resolved    session.java    /facebooksdk/src/com/facebook   line 1215   java problem fragment cannot resolved type   session.java    /facebooksdk/src/com/facebook   line 1843   java problem loader<simplegraphobjectcursor<t>> cannot resolved type graphobjectpagingloader.java    /facebooksdk/src/com/facebook/widget    line 109    java problem loader cannot resolved type graphobjectpagingloader.java    /facebooksdk/src/com/facebook/widget    line 27 java problem loadermanager cannot resolved type  pickerfragment.java /facebooksdk/src/com/facebook/widget    line 813    java problem loader<simplegraphobjectcursor<t>> cannot resolved type graphobjectpagingloader.java    /facebooksdk/src/com/facebook/widget    line 119    java problem 

what hoping fix either dependancy problem (whichd doesnt cause other errors). or fix errors after delete android-support-v4.jar facebook project.

any on great ive been scratching head while , running out of patients on googling it.

thanks

even faced same situation. did:

facebook sdk has v4 library. app have v4.

now presence of 2 copies of same file confuses compiler. did:

  • removed v4 library app. shows errors, ignore time being.

  • now add facebook library.

    everything work fine.. hope helps u.

you can follow answer.


Comments