[에러] This project uses AndroidX dependencies

2021. 8. 10. 10:26
728x90

최근에 안드로이드 개발하면서 파이어베이스랑 연동하고 여러 dependency를 추가했더니 아래와 같은 빌드 에러가 떴다

 

Your project has set 'android.useAndroidX=true', but configuration 'debugAnnotationProcessorClasspath' still contains legacy support libraries, which may cause runtime issues. This behavior will not be allowed in Android Gradle plugin 8.0.

 

해결 방법:

안드로이드 스튜디오: Gradle Scripts > gradle.properties > android.enableJetifier=true 추가 > Sync Now 클릭

다시 빌드하니까 성공적으로 끝나고 에러가 해결된 것을 확인할 수 있었다.

 

참고 자료:

https://stackoverflow.com/questions/60506895/android-studio-3-6-1-error-this-project-uses-androidx-dependencies

 

Android Studio 3.6.1 | Error: "This project uses AndroidX dependencies"

I have updated my Android Studio and the targetSdkVersion (build.gradle) to 29. I migrated to AndroidX. Now the Gradle build gives me these 2 errors. This project uses AndroidX dependencies, bu...

stackoverflow.com

 

728x90

BELATED ARTICLES

more