DarkCircle/Kotlin

Howlstagram error

ujum 2022. 7. 7. 10:38
728x90

1. error: 

Duplicate class android.support.v4.app.INotificationSideChannel found in modules core-1.7.0-runtime (androidx.core:core:1.7.0) and support-compat-28.0.0-runtime (com.android.support:support-compat:28.0.0)

 

run 시키니까 오류가 뜨고 마지막 쯤 이런 오류가 나왔다.

그래서 구글에 class android.support.v4.app.INotificationSideChannel 까지 쳤더니 해결 가능했다!

 

Android studio developers

https://developer.android.com/jetpack/androidx?hl=ko 

 

AndroidX 개요  |  Android 개발자  |  Android Developers

AndroidX 개요 androidx 네임스페이스는 Android Jetpack 라이브러리로 구성됩니다. androidx 네임스페이스에 있는 라이브러리는 지원 라이브러리와 마찬가지로 Android 플랫폼과 별도로 제공되며 Android 출시

developer.android.com

 

강의에 나온 android버전과 나의 버전 차이 때문에 발생한 오류로 androidX 네임스페이스의 라이브러리를 사용하기 위해 플러그인 플러그를 true로 설정해주면 아주 간단히 해결가능!

 

gradle.properties에 useAndroidX는 이미  true로 설정돼있었고

android.useAndroidX=true
android.enableJetifier=true

android.enableJetifier=true만 추가해주면 된다

 

2. com.android.support:design error

이것 또한 androidX mapping error [bulid.gradle(:app)]

https://developer.android.com/jetpack/androidx/migrate/artifact-mappings

 

Artifact Mappings  |  Android 개발자  |  Android Developers

Artifact Mappings 다음 표에서는 이전 지원 라이브러리 아티팩트에서 androidx로의 현재 매핑을 나열합니다. 이러한 매핑은 CSV 형식으로도 다운로드할 수 있습니다. 최신 버전의 Jetpack 라이브러리는

developer.android.com

mapping 관련 error는 여기서 찾아서 바꿔주면 쉽게 해결 가능하다

가 아니고

 

또 default 오류뜨는데

https://stackoverflow.com/questions/57723403/error-failed-to-resolve-com-google-android-materialmaterial-rc01-affected-mo

 

ERROR: Failed to resolve: com.google.android.material:material-rc01: Affected Modules: app

After adding 'com.google.android.material:material-rc01' in place of com.android.support:design as per documentation, studio failed to detect the dependency. Then I downgrade the version of depende...

stackoverflow.com

여기서 설명해준 것 처럼 version을 적어주어야 하나보다

implementation 'com.google.android.material:material:1.0.0-rc01'

 

 

3. startActivityForResult, onActivityResult

2020년 5월부로 없어졌다고 한다 킹받네

'DarkCircle > Kotlin' 카테고리의 다른 글

Firebase 연동_google, facebook 로그인  (0) 2022.07.07
3주 차  (0) 2022.07.06
2주 차  (0) 2022.07.06
1주 차  (0) 2022.07.06
참고자료  (0) 2022.07.06