LinuxCommandLibrary

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 (AndroidX to Support).
-l
List class mappings.
-v
Verbose output.
--help
Display help information.

CAVEATS

Part of Android SDK. One-way migration preferred. Some libraries incompatible.

HISTORY

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

SEE ALSO

gradle(1), android(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community