'Android Studio - RecyclerView with API level 19 (API 19)

I need to use RecyclerView with API 19 (API level 19).

I already have tried adding

implementation 'com.android.support:recyclerview-v7:+'

and

implementation 'androidx.recyclerview:recyclerview:1.0.0'

in build.gradle but no success. I am new to Android development. I have checked 3-4 similar questions but no solution worked for me. Please if someone can tell me all of the changes I need to make in build.gradle, XML and/or in manifest file?

Thank you!



Solution 1:[1]

For these cases, apart from the things you mentioned, I also invalidate cache and restart. This helps me a lot sometimes.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Rudrank Basant