facebook Error. Jar mismatch! Fix your dependencies.

 페이스북 SDK 임포트시 나오는 에러를 해결했더니 이번에는 바로 jar mismatch 라는 에러가 발생하네요.

[2013-05-27 11:13:19 - UnityAndroidFacebookJar] Found 2 versions of android-support-v4.jar in the dependency list,
[2013-05-27 11:13:19 - UnityAndroidFacebookJar] but not all the versions are identical (check is based on SHA-1 only at this time).
[2013-05-27 11:13:19 - UnityAndroidFacebookJar] All versions of the libraries must be the same at this time.
[2013-05-27 11:13:19 - UnityAndroidFacebookJar] Versions found are:
[2013-05-27 11:13:19 - UnityAndroidFacebookJar] Path: D:\ProgramSource\facebookTest\AndroidJar\libs\android-support-v4.jar
[2013-05-27 11:13:19 - UnityAndroidFacebookJar] Length: 393154
[2013-05-27 11:13:19 - UnityAndroidFacebookJar] SHA-1: 307c1cc532eabbf1d135b43e5c983c9da700449d
[2013-05-27 11:13:19 - UnityAndroidFacebookJar] Path: D:\ProgramSource\facebookTest\facebook-android-sdk-3.0.1\facebook\libs\android-support-v4.jar
[2013-05-27 11:13:19 - UnityAndroidFacebookJar] Length: 349252
[2013-05-27 11:13:19 - UnityAndroidFacebookJar] SHA-1: 612846c9857077a039b533718f72db3bc041d389
[2013-05-27 11:13:19 - UnityAndroidFacebookJar] Jar mismatch! Fix your dependencies

 스샷과 로그에서 보이는 것과 같이 허니컴 이상 API를 구버전 하위 API에서 사용하기 위한 android-support-v4.jar 파일이 중복이 되서 나오는 오류입니다.

 둘중에 하나를 제거하기 위해 먼저 페이스북 SDK에 있는 것을 위 스샷과 같이 Java Build Path에서 Remove 해줬습니다. 여전히 안되더군요.

 보아하니 페이스북 SDK의 Android Dependencies에도 v4 파일이 있네요. 이것도 Remove를 해줬더니만 android-support-v4.jar가 없을 때 발생하는 Fragment cannot be resolved to a type 에러가 쭉 발생하네요.

 일단 페이스북 SDK에는 원래대로 android-support-v4.jar를 추가해주고 안드로이드 프로젝트에서 android-support-v4.jar를 Remove 해줬더니 잘됩니다. 이제 빌드에러는 없네요.

댓글

이 블로그의 인기 게시물

'xxx.exe' 프로그램을 시작할 수 없습니다. 지정된 파일을 찾을 수 없습니다.

goorm IDE에서 node.js 프로젝트로 Hello World Simple Server 만들어 띄워보기

애드센스 수익을 웨스턴 유니온으로 수표대신 현금으로 지급 받아보자.