I was implementing Android Room Database and in one of the tutorial i found androidx.legacy:legacy-support-v4:1.0.0
dependencies. Please any one tell me use of this dependencies.
androidx.legacy:legacy-support-v4
is Androidx
artifacts of com.android.support:support-v4
com.android.support:support-v13 -> androidx.legacy:legacy-support-v13 com.android.support:support-v4 -> androidx.legacy:legacy-support-v4
You can find info about the library mapping here
The Support Library is a static library that you can add to your Android application in order to use APIs that are either not available for older platform versions or utility APIs that aren't a part of the framework APIs. Compatible on devices running API 14 or later.
Uses for the Support Libraries
There are a few distinct uses for the support libraries
. Backward compatibility classes for earlier versions of the platform is just one of them.
See official documents here support-library