본문 바로가기

안드로이드/안드로이드 디버깅

[Android] Jetifier란?

개요

Support library 이슈를 해결하기 위해 알게 된 Jetifier에 대해서 알아본다.

 

Jetifier

The standalone Jetifier tool migrates support-library-dependent libraries to rely on the equivalent AndroidX packages instead. The tool lets you migrate an individual library directly, instead of using the Android gradle plugin bundled with Android Studio.

 

Support Library에 종속적인 라이브러리를 비슷한 AndroidX로 마이그레이션할 때 사용한다.

 

즉, 과거 안드로이드에서 자주 사용된 support library를 사용하는 써드 파티 라이브러리를 우리가 개발하는 AndroidX 프로젝트와 호환되도록 돕는 툴이다. 써드 파트 라이브러리를 사용하지 않는다면 문제가 없겠지만, 안드로이드 개발에서 써드 파트 라이브러리 없이 개발하는것은 맨땅에 헤딩하기다.

 

 

Jetifier를 사용하기 위해서는 gradle.properties 파일에 다음 코드를 추가한다.

android.enableJetifier=true
android.useAndroidX=true