Android X backwards compatibility

后端 未结 3 1135
长情又很酷
长情又很酷 2020-12-17 01:25

I have Android App that uses support library versions 27.1.2. I want to consume a library written using Android X (api 28).

There are few issues with name spacing of

3条回答
  •  长情又很酷
    2020-12-17 02:01

    AndroidX[About]

    • Consumer support -> Producer androidX - not compatible.

    You should migrate your consumer to use AndroidX. Android Studio menu -> Refactor -> Migrate to AndroidX...

    • Consumer androidX -> Producer support - compatible.

    Consumer's gradle.properties in addition to use androidX should enable Jetifier[About] which converts support to androidX

    android.useAndroidX=true
    android.enableJetifier=true
    

    [Mix AndroidX and support in a multi-module project]

提交回复
热议问题