LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

jetifier

migrates Android libraries from Support Library to AndroidX

TLDR

Convert AAR to AndroidX
$ jetifier-standalone -i [lib.aar] -o [lib-androidx.aar]
copy
Convert JAR
$ jetifier-standalone -i [lib.jar] -o [lib-androidx.jar]
copy
Reverse conversion
$ jetifier-standalone -r -i [lib-androidx.aar] -o [lib.aar]
copy
List mappings
$ jetifier-standalone -l
copy
Verbose mode
$ jetifier-standalone -v -i [input] -o [output]
copy

SYNOPSIS

jetifier-standalone [options] -i input -o output

DESCRIPTION

jetifier migrates Android libraries from Support Library to AndroidX. It rewrites bytecode and resources to use new package names.
The tool enables using older libraries with AndroidX projects. It processes AAR and JAR files automatically.

PARAMETERS

-i FILE

Input AAR/JAR file.
-o FILE
Output file.
-r, --reversed
Reverse conversion (AndroidX to Support Library).
-l
List class mappings.
-c FILE
Custom configuration file for mappings.
-v
Verbose output.
--help
Display help information.

CAVEATS

Part of Android SDK. Forward migration (Support to AndroidX) is preferred. Some libraries may not be fully compatible. Jetifier is considered legacy as most libraries have migrated to AndroidX natively.

HISTORY

jetifier was created by Google to assist in the Android Support Library to AndroidX migration introduced in 2018.

SEE ALSO

gradle(1)

Copied to clipboard
Kai