Duplicate entry for alias 'androidx.appcompat': dependency {group='androidx.appcompat', name='appcompat', version='1.6.1'} is replaced with dependency {group='androidx.appcompat', name='appcompat-resources', version='1.6.1'}
Then commented this line.