본문 바로가기
🖥 Programming/📱 Android (Kotlin)

[Android] android.useAndroidX=true 문제 해결방법

by MinChan-Youn 2022. 8. 22.

안녕하세요~ 챠니입니다! :)

 

 

문제

  • Your project has set `android.useAndroidX=true`, but configuration `debugRuntimeClasspath` still contains legacy support libraries, which may cause runtime issues. This behavior will not be allowed in Android Gradle plugin 8.0. Please use only AndroidX dependencies or set `android.enableJetifier=true` in the `gradle.properties` file to migrate your project to AndroidX (see https://developer.android.com/jetpack/androidx/migrate for more info). The following legacy support libraries are detected: debugRuntimeClasspath -> com.facebook.android:facebook-login:5.15.3 -> com.facebook.android:facebook-core:5.15.3 -> com.android.support:support-annotations:27.0.2 debugRuntimeClasspath -> com.facebook.android:facebook-login:5.15.3 -> com.facebook.android:facebook-core:5.15.3 -> com.android.support:support-core-utils:27.0.2 debugRuntimeClasspath -> com.facebook.android:facebook-login:5.15.3 -> com.facebook.android:facebook-common:5.15.3 -> com.android.support:support-v4:27.0.2 -> com.android.support:support-compat:27.0.2 debugRuntimeClasspath -> com.facebook.android:facebook-login:5.15.3 -> com.facebook.android:facebook-common:5.15.3 -> com.android.support:support-v4:27.0.2 -> com.android.support:support-compat:27.0.2 -> android.arch.lifecycle:runtime:1.0.3 debugRuntimeClasspath -> com.facebook.android:facebook-login:5.15.3 -> com.facebook.android:facebook-common:5.15.3 -> com.android.support:support-v4:27.0.2 -> com.android.support:support-compat:27.0.2 -> android.arch.lifecycle:runtime:1.0.3 -> android.arch.lifecycle:common:1.0.3 debugRuntimeClasspath -> com.facebook.android:facebook-login:5.15.3 -> com.facebook.android:facebook-common:5.15.3 -> com.android.support:support-v4:27.0.2 -> com.android.support:support-compat:27.0.2 -> android.arch.lifecycle:runtime:1.0.3 -> android.arch.core:common:1.0.0 debugRuntimeClasspath -> com.facebook.android:facebook-login:5.15.3 -> com.facebook.android:facebook-common:5.15.3 -> com.android.support:support-v4:27.0.2 debugRuntimeClasspath -> com.facebook.android:facebook-login:5.15.3 -> com.facebook.android:facebook-common:5.15.3 -> com.android.support:support-v4:27.0.2 -> com.android.support:support-media-compat:27.0.2 debugRuntimeClasspath -> com.facebook.android:facebook-login:5.15.3 -> com.facebook.android:facebook-common:5.15.3 -> com.android.support:support-v4:27.0.2 -> com.android.support:support-core-ui:27.0.2 debugRuntimeClasspath -> com.facebook.android:facebook-login:5.15.3 -> com.android.support:appcompat-v7:27.0.2 -> com.android.support:support-fragment:27.0.2 debugRuntimeClasspath -> com.facebook.android:facebook-login:5.15.3 -> com.android.support:appcompat-v7:27.0.2 debugRuntimeClasspath -> com.facebook.android:facebook-login:5.15.3 -> com.android.support:appcompat-v7:27.0.2 -> com.android.support:support-vector-drawable:27.0.2 debugRuntimeClasspath -> com.facebook.android:facebook-login:5.15.3 -> com.android.support:appcompat-v7:27.0.2 -> com.android.support:animated-vector-drawable:27.0.2 debugRuntimeClasspath -> com.facebook.android:facebook-login:5.15.3 -> com.facebook.android:facebook-common:5.15.3 -> com.android.support:cardview-v7:27.0.2 debugRuntimeClasspath -> com.facebook.android:facebook-login:5.15.3 -> com.facebook.android:facebook-common:5.15.3 -> com.android.support:customtabs:27.0.2

 

해결방법

gradle.properties 파일에

# Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true

추가하기

 

 

 

 

질문 또는 궁굼한 부분은 댓글을 남겨주세요! 친절하게 답변드리겠습니다!

응원의 댓글은 저에게 큰 힘이 된답니다! :)

즐거운 하루되세요!

 

깃허브 보러 놀러오세요 👇 (맞팔환영)

https://github.com/younminchan

 

younminchan - Overview

안드로이드 2년차 개발자 •⚽️/🎤/🥁/🖥/🏃‍♂️/🚴‍♂️/🤟 TechBlog⬇️ minchanyoun.tistory.com - younminchan

github.com