Android Dev Tips #2023-04-25#
#Android #Dev #Tip
Disable Jetifier#
Jetifier is a tool in Android Studio that converts third-party dependencies using the Android Support library to use the AndroidX library. This is useful for migrating old projects or using new dependencies. However, in some cases, you may need to disable Jetifier. Here's how to disable Jetifier:
-
Open the gradle.properties file in the root directory of your project.
-
Add the following code at the end of the file:
android.useAndroidX=true
android.enableJetifier=false
- Rebuild your project.
This code will disable Jetifier. Please note that disabling Jetifier may cause errors in your project, so use it with caution.
Check if Jetifier can be disabled#
-
Refer to the website configuration gradle plugin
http://byebyejetifier.dipien.com -
Execute the check
./gradlew canISayByeByeJetifier -Pandroid.enableJetifier=false