I am new to android development, and I have been using the command line tools to create an android project. I followed all the instructions given in the tutorial at android
For AndroidX implement following lib in gridle
implementation 'androidx.palette:palette:1.0.0'
and import following class in activity -
import androidx.palette.graphics.Palette;
for more info see class and mapping for AndroidX https://developer.android.com/jetpack/androidx/migrate/artifact-mappings https://developer.android.com/jetpack/androidx/migrate/class-mappings