2013-08-24 1 views
2

프로젝트에 여러 개의 라이브러리가 있습니다. 문제는 갑자기 내 라이브러리가 라이브러리 사용에 필수적인 "Android private libraries"폴더에 추가되지 않는다는 것입니다. 이 문제를 도와주세요. 문제는 작업 공간에있는 하나의 프로젝트에서만 발생하며 다른 프로젝트는 차갑게 작동합니다. Pls note : java 빌드 경로에서 --- 주문 및 내보내기 ---> 개인 라이브러리를 확인했습니다. 그래서 이것은이 문제에 대해 문제가 될 수 없습니다. enter image description here라이브러리가 Android의 Android 개인 라이브러리 폴더에 추가되지 않습니다.

내 현재 SDK 도구 구성 enter image description here

Console message on cleaning: 
[2013-08-24 18:03:33 - Twitter4jSample] Unable to resolve target 'android-7' 
[2013-08-24 18:03:34 - myproject] Found 2 versions of android-support-v4.jar in the dependency list, 
[2013-08-24 18:03:34 - myproject] but not all the versions are identical (check is based on SHA-1 only at this time). 
[2013-08-24 18:03:34 - myproject] All versions of the libraries must be the same at this time. 
[2013-08-24 18:03:34 - myproject] Versions found are: 
[2013-08-24 18:03:34 - myproject] Path: D:\Project BackUps\project2 gen\dev\facebookSDK\libs\android-support-v4.jar 
[2013-08-24 18:03:34 - myproject] Length: 484258 
[2013-08-24 18:03:34 - myproject] SHA-1: bd6479f5dd592790607e0504e66e0f31c2b4d308 
[2013-08-24 18:03:34 - myproject] Path: D:\Project BackUps\project2 gen\dev\projectAPP\libs\android-support-v4.jar 
[2013-08-24 18:03:34 - myproject] Length: 556198 
[2013-08-24 18:03:34 - myproject] SHA-1: 4a6be13368bb64c5a0b0460632d228a1a915f58f 
[2013-08-24 18:03:34 - myproject] Jar mismatch! Fix your dependencies 
[2013-08-24 18:03:34 - myproject] Found 2 versions of android-support-v4.jar in the dependency list, 
[2013-08-24 18:03:34 - myproject] but not all the versions are identical (check is based on SHA-1 only at this time). 
[2013-08-24 18:03:34 - myproject] All versions of the libraries must be the same at this time. 
[2013-08-24 18:03:34 - myproject] Versions found are: 
[2013-08-24 18:03:34 - myproject] Path: D:\Project BackUps\project2 gen\dev\facebookSDK\libs\android-support-v4.jar 
[2013-08-24 18:03:34 - myproject] Length: 484258 
[2013-08-24 18:03:34 - myproject] SHA-1: bd6479f5dd592790607e0504e66e0f31c2b4d308 
[2013-08-24 18:03:34 - myproject] Path: D:\Project BackUps\project2 gen\dev\projectAPP\libs\android-support-v4.jar 
[2013-08-24 18:03:34 - myproject] Length: 556198 
[2013-08-24 18:03:34 - myproject] SHA-1: 4a6be13368bb64c5a0b0460632d228a1a915f58f 
[2013-08-24 18:03:34 - myproject] Jar mismatch! Fix your dependencies 
[2013-08-24 18:03:49 - myproject] Found 2 versions of android-support-v4.jar in the dependency list, 
[2013-08-24 18:03:49 - myproject] but not all the versions are identical (check is based on SHA-1 only at this time). 
[2013-08-24 18:03:49 - myproject] All versions of the libraries must be the same at this time. 
[2013-08-24 18:03:49 - myproject] Versions found are: 
[2013-08-24 18:03:49 - myproject] Path: D:\Project BackUps\project2 gen\dev\facebookSDK\libs\android-support-v4.jar 
[2013-08-24 18:03:49 - myproject] Length: 484258 
[2013-08-24 18:03:49 - myproject] SHA-1: bd6479f5dd592790607e0504e66e0f31c2b4d308 
[2013-08-24 18:03:49 - myproject] Path: D:\Project BackUps\project2 gen\dev\projectAPP\libs\android-support-v4.jar 
[2013-08-24 18:03:49 - myproject] Length: 556198 
[2013-08-24 18:03:49 - myproject] SHA-1: 4a6be13368bb64c5a0b0460632d228a1a915f58f 
[2013-08-24 18:03:49 - myproject] Jar mismatch! Fix your dependencies 
[2013-08-24 18:04:07 - myproject] Found 2 versions of android-support-v4.jar in the dependency list, 
[2013-08-24 18:04:07 - myproject] but not all the versions are identical (check is based on SHA-1 only at this time). 
[2013-08-24 18:04:07 - myproject] All versions of the libraries must be the same at this time. 
[2013-08-24 18:04:07 - myproject] Versions found are: 
[2013-08-24 18:04:07 - myproject] Path: D:\Project BackUps\project2 gen\dev\facebookSDK\libs\android-support-v4.jar 
[2013-08-24 18:04:07 - myproject] Length: 484258 
[2013-08-24 18:04:07 - myproject] SHA-1: bd6479f5dd592790607e0504e66e0f31c2b4d308 
[2013-08-24 18:04:07 - myproject] Path: D:\Project BackUps\project2 gen\dev\projectAPP\libs\android-support-v4.jar 
[2013-08-24 18:04:07 - myproject] Length: 556198 
[2013-08-24 18:04:07 - myproject] SHA-1: 4a6be13368bb64c5a0b0460632d228a1a915f58f 
[2013-08-24 18:04:07 - myproject] Jar mismatch! Fix your dependencies 
[2013-08-24 18:04:17 - myproject] Found 2 versions of android-support-v4.jar in the dependency list, 
[2013-08-24 18:04:17 - myproject] but not all the versions are identical (check is based on SHA-1 only at this time). 
[2013-08-24 18:04:17 - myproject] All versions of the libraries must be the same at this time. 
[2013-08-24 18:04:17 - myproject] Versions found are: 
[2013-08-24 18:04:17 - myproject] Path: D:\Project BackUps\project2 gen\dev\facebookSDK\libs\android-support-v4.jar 
[2013-08-24 18:04:17 - myproject] Length: 484258 
[2013-08-24 18:04:17 - myproject] SHA-1: bd6479f5dd592790607e0504e66e0f31c2b4d308 
[2013-08-24 18:04:17 - myproject] Path: D:\Project BackUps\project2 gen\dev\projectAPP\libs\android-support-v4.jar 
[2013-08-24 18:04:17 - myproject] Length: 556198 
[2013-08-24 18:04:17 - myproject] SHA-1: 4a6be13368bb64c5a0b0460632d228a1a915f58f 
[2013-08-24 18:04:17 - myproject] Jar mismatch! Fix your dependencies 
+1

일식을 다시 시작하고 확인하십시오. –

+0

콘솔에 'eclipse -> project -> clean'을 실행 한 후 오류가 발생하면 붙여 넣으십시오. –

+0

다시 시작되지 않았습니다. @ mansoulx가 편집 한 질문을 가지고 있습니다. –

답변

11

당신은 당신의 인텔리로 support library added 다른 가지고 :

Found 2 versions of android-support-v4.jar in the dependency list, but not all the versions are identical (check is based on SHA-1 only at this time). 

프로젝트에서 그 항아리의 동일한 버전이 있어야합니다 것을 의미 그리고 사용하고있는 모든 라이브러리.

문제를 해결하려면 프로젝터에있는 android-support-v4.jar을 제거하면됩니다. 그리고 당신은 당신의 컴퓨터 어딘가에서 그 항아리 중 하나를 선택할 수 있습니다 (당신은 SDK에서 제공하는 것을 선택할 수 있습니다). 이것은 나를 위해 문제를 해결했다.

0

문제는 내가 또한 안드로이드 지원 4 병을 필요로하는 페이스 북 SDK를 사용했고 메인 프로젝트에서 또한 내 프로젝트에 4 병을 추가했다. 그래서 충돌이있었습니다. 해결책 : 기본 프로젝트에서 지원 항아리를 제거하십시오. 감사합니다.

0

내게도 이런 일이 일어났습니다. 그리고 마침내 SDK 관리자를 열고 백그라운드에서 프록시 자격 증명을 입력 할 때까지 기다리고있었습니다. 일단 SDK 관리자를 종료하고 Eclipse를 다시 시작하면 Android 개인 라이브러리가 다시 표시됩니다.