홈>
안드로이드 스튜디오의 다른 앱에 프로젝트를 통합하고 있지만 아래 오류가 표시됩니다. 문제를 인터넷 검색하지만 사용하지는 않습니다.
Error:Execution failed for task ':app:packageAllDebugClassesForMultiDex'.
> java.util.zip.ZipException: duplicate entry: android/support/v4/accessibilityservice/AccessibilityServiceInfoCompatJellyBeanMr2.class
아래는 내 앱 의존성입니다
configurations { all*.exclude group: 'com.android.support', module: 'support-annotations' }
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile project(':waleteros')
compile 'com.android.support:recyclerview-v7:+'
compile 'com.squareup.picasso:picasso:2.4.0'
compile 'com.jakewharton:butterknife:5.1.2'
compile files('src/libs/android_sync_service_library.jar')
compile "com.google.android.gms:play-services:3.1.+"
compile('com.crashlytics.sdk.android:crashlytics:[email protected]') {
transitive = true;
}
여기 내 도서관 의존성
configurations { all*.exclude group: 'com.android.support', module: 'support-v4' }
configurations { all*.exclude group: 'com.android.support', module: 'support-annotations' }
dependencies {
compile project(':ingosdk')
compile 'com.google.code.gson:gson:2.2.4'
compile files('libs/A2iA.Mobility.jar')
compile files('libs/acra-4.5.0.jar')
compile files('libs/bugsense-3.5.jar')
compile files('libs/deviceprint-lib-1.0.0.jar')
compile files('libs/FlurryAnalytics-5.3.0.jar')
compile files('libs/httpmime-4.1.2.jar')
compile files('libs/libGoogleAnalyticsServices.jar')
compile files('libs/volley.jar')
compile 'com.actionbarsherlock:actionbarsherlock:[email protected]'
compile files('libs/android-support-v13.jar')
}
- 답변 # 1
- 답변 # 2
Android SDK를 업그레이드 한 후에도 같은 문제가있었습니다.
buildToolsVersion '23.0.1'
에서 응용 프로그램을 실행할 수있었습니다.buildToolsVersion '24.0.3'
로 변경하면 같은 오류가 발생합니다.1.7 to 1.8
에서 Java 버전을 업데이트하여 문제를 해결했습니다.compileSdkVersion 24
와 함께 - 답변 # 3
유사한 문제, 방금 가져 왔습니다
compile 'fr.avianey.com.viewpagerindicator:library:2.4.1.1'
이 오류가 발생하여 "@aar"를 추가 한 후 문제가 해결되었습니다
compile 'fr.avianey.com.viewpagerindicator:library:[email protected]'
- 답변 # 4
제 생각에이 오류는 jar 파일 중복으로 발생합니다. support-V4 jar 파일을 내 라이브러리로 삭제 한 다음 빌드가 제대로 작동합니다. 감사합니다
관련 자료
- java - 목록에서 중복 항목을 제거하고 마지막으로 업데이트 된 항목 LocalDate 유지
- java - mysqlintegrityconstraintviolationexception - 'primary'키에 대한 중복 항목 '1'
- ios - SharkORM에서 중복 항목을 방지하는 방법
- mysql - 기본 키에 대한 중복 항목
- eclipse - - reobfjar javautilzipzipexception에서 mod 컴파일 관련 문제 : 중복 항목
- database - 다른 열 항목에 대한 중복 항목 제한
- orm - cakePhp를 사용하여 중복 항목
- python - 하나의 항목에 중복 데이터 추가
- php - 고유 한 유효성 검사를 사용하는 동안 중복 된 항목 오류
- asp.net - 여러 줄 텍스트 상자에 중복 입력을 방지 할 수 있습니까?
- powershell - arraylist에서 중복 항목 삭제
- mysql - # 1062 - 'primary'키에 대한 중복 항목 '19'
- Istio 메쉬가 "중복 항목"오류와 함께 중단됩니다
- mysql - UUID primary_key를 사용하여 Django bulk_create IntegrityError (중복 항목)
- java - 오류 코드 - 1062 update를 사용하는 키 고유 데이터 필드에 대한 중복 항목 ' mysql
- android gradle 빌드 - 중복 항목 : meta-inf/app_releasekotlin_module
- powershell - 속성 이름을 기준으로 정렬 된 중복 항목을 최신 날짜로 제거하는 방법
- sql - 두 테이블을 기반으로 한 중복 항목
- 중복 MySQL 항목의 출력 열 ID
- javascript - 각도 양식 작성기 배열에서 중복 항목의 유효성을 검사하는 방법은 무엇입니까?
관련 질문
- Android Studio 외부에 설치된 경우 adb dpm set-device-owner가 작동하지 않음
- Android 스튜디오 다양한 화면 크기
- Java에 거대한 base64 code를 어떻게 저장할 수 있습니까?
- 스크린샷을 찍을 때 Android Studio가 멈춤
- android : Flutter의 텍스트 정렬 실수
- android : mutableListOf
() ( 2개의 매개변수 포함)를 다른 활동에 보냅니다. - android : 안드로이드 장치가 로컬 호스트에 연결되지 않습니다
- java : 다음 code 중 10개를 반복하지만 다음 code를 어떻게 단축합니까?
- java : CustomTabs에 여러 브라우저 선택을 넣는 방법
- Android Studio Emulator 7.1.1이 자주 충돌함
libs 폴더에 android-support-v4.jar가있는 경우 삭제하십시오!
내 문제를 해결했다.
파일이 build.gradle 파일에 추가되지 않더라도 gradle에 빌드에 파일이 포함되어 있습니다.