0

actually this question is totally the opposite to this one.

Can I use library that used android support with Androidx projects.

And I knew there has been a trick to handle the above question by this config

android.useAndroidX=true
android.enableJetifier=true

However, I'm not sure is there another trick for the opposite case. When an App uses a libs which depend on AndroidX, but at the same time, the App also has dependencies on Android-support libs.

The example dependencies

    +--- App 
    |    +--- com.android.support:support-compat:28.0.0
    |    +--- Lib#1
    |    |    |
    |    |    +--- androidx.appcompat:appcompat:1.0.2

Thank you :)

BCPeng
  • 163
  • 1
  • 10

1 Answers1

0

you can't use support libraries along with androidx package structure

please take a look official doc

Zafer Celaloglu
  • 1,438
  • 1
  • 17
  • 28