티스토리 뷰
반응형
최근에 만든 프로젝트에서 발생한 에러이다. 간단하게 이미지 확대 기능을 위해 포토뷰를 사용하려고 했더니 아래와 같은 에러가 발생한다.
Duplicate class android.support.v4.app.INotificationSideChannel found in modules core-1.10.1-runtime (androidx.core:core:1.10.1) and support-compat-25.3.1-runtime (com.android.support:support-compat:25.3.1)
Duplicate class android.support.v4.app.INotificationSideChannel$Stub found in modules core-1.10.1-runtime (androidx.core:core:1.10.1) and support-compat-25.3.1-runtime (com.android.support:support-compat:25.3.1)
Duplicate class android.support.v4.app.INotificationSideChannel$Stub$Proxy found in modules core-1.10.1-runtime (androidx.core:core:1.10.1) and support-compat-25.3.1-runtime (com.android.support:support-compat:25.3.1)
Duplicate class android.support.v4.os.IResultReceiver found in modules core-1.10.1-runtime (androidx.core:core:1.10.1) and support-compat-25.3.1-runtime (com.android.support:support-compat:25.3.1)
Duplicate class android.support.v4.os.IResultReceiver$Stub found in modules core-1.10.1-runtime (androidx.core:core:1.10.1) and support-compat-25.3.1-runtime (com.android.support:support-compat:25.3.1)
Duplicate class android.support.v4.os.IResultReceiver$Stub$Proxy found in modules core-1.10.1-runtime (androidx.core:core:1.10.1) and support-compat-25.3.1-runtime (com.android.support:support-compat:25.3.1)
Duplicate class android.support.v4.os.ResultReceiver found in modules core-1.10.1-runtime (androidx.core:core:1.10.1) and support-compat-25.3.1-runtime (com.android.support:support-compat:25.3.1)
Duplicate class android.support.v4.os.ResultReceiver$1 found in modules core-1.10.1-runtime (androidx.core:core:1.10.1) and support-compat-25.3.1-runtime (com.android.support:support-compat:25.3.1)
Duplicate class android.support.v4.os.ResultReceiver$MyResultReceiver found in modules core-1.10.1-runtime (androidx.core:core:1.10.1) and support-compat-25.3.1-runtime (com.android.support:support-compat:25.3.1)
Duplicate class android.support.v4.os.ResultReceiver$MyRunnable found in modules core-1.10.1-runtime (androidx.core:core:1.10.1) and support-compat-25.3.1-runtime (com.android.support:support-compat:25.3.1)
Go to the documentation to learn how to Fix dependency resolution errors.
해결방법은 의외로 간단하다.
gradle.properties
android.enableJetifier=true
이 한 줄을 추가해주면 된다.
검색해보니 이전에 쓰이던 Android Support 라이브러리에서 쓰이는 라이브러리들과 충돌이 발생하는 문제라고 한다.
해당 옵션의 자세한 내용은 디벨로퍼스에서 어렵지 않게 확인할 수 있었다.
https://developer.android.com/jetpack/androidx?hl=ko
AndroidX 개요 | Android 개발자 | Android Developers
AndroidX 개요 컬렉션을 사용해 정리하기 내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요. androidx 네임스페이스는 Android Jetpack 라이브러리로 구성됩니다. androidx 네임스페이스에 있는 라이
developer.android.com
반응형
댓글
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 아이폰앱개발
- rotate
- toml
- 버전카타로그
- rotation
- Swift
- NoAnimation
- 격파르타 합격후기
- gem update
- 격파르타 장점
- 함수
- 변수
- 연산자
- 안드로이드
- Android
- 스위프트
- 격파르타 후기
- 코틀린
- IOS
- ~=
- dart
- sqld 자격증 합격
- Xcode
- 자바
- Kotlin
- 아이폰
- 음성재생
- Java
- .toml
- FLUTTER
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
글 보관함