android supports AndroidX attribute configuration

1. AndroidX

AndroidX is the product of finishing the android.support.xxx package. Because the previous support package was too confusing, Google launched AndroidX. (The v4 package, v7 package and so on are not used, and they are directly replaced by androidx)

When our project needs to support Google's AndroidX, we generally need to configure two properties:

android.useAndroidX=true means "the Android plugin will enable the corresponding AndroidX library instead of the Support library"; if not set, the default is false;


android.enableJetifier=true means that the Android plug-in will automatically migrate existing third-party libraries (aar packages or jar packages and other dependent libraries) by rewriting its binary files to migrate and use AndroidX dependencies; if not set, the default is false;

2. How to configure AS?

おすすめ

転載: blog.csdn.net/sunbinkang/article/details/124910259