티스토리 뷰
반응형
최근에 만든 프로젝트에서 발생한 에러이다. 간단하게 이미지 확대 기능을 위해 포토뷰를 사용하려고 했더니 아래와 같은 에러가 발생한다.
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
- 격파르타 후기
- 스위프트
- 연산자
- 음성재생
- 격파르타 합격후기
- 아이폰앱개발
- Swift
- ~=
- Android
- rotation
- Xcode
- toml
- Kotlin
- Java
- dart
- IOS
- 격파르타 장점
- 아이폰
- 버전카타로그
- FLUTTER
- sqld 자격증 합격
- NoAnimation
- 안드로이드
- gem update
- 함수
- .toml
- 변수
- 코틀린
- 자바
- rotate
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 |
글 보관함