Difference between androidx and com.android.support

前端 未结 4 570
面向向阳花
面向向阳花 2020-12-05 10:00

I was about to use a constraint-layout in my project when I noticed that there are two different dependencies that I can use:

  • com.android.support.constrai
4条回答
  •  难免孤独
    2020-12-05 10:27

    One of the difference between AndroidX and Support libraries is that when you use support libraries, all support libraries must be the same version, but in androidX there is no such thing.

    other thing is that in support library, most of the time when you need a component in your app, you have to add dependencies that have so many other thing that you really don't need. but in AndroidX you can add only the dependency that you need and no more.

提交回复
热议问题