AAPT: error: attribute cardBackgroundColor (aka com.x.x:cardBackgroundColor) not found.

* What went wrong:
Execution failed for task ':launcher:processReleaseResources'.
> Android resource linking failed
  C:\Users\Administrator\.gradle\caches\transforms-2\files-2.1\a3890adfdb75cc00c9c342ba929acf1b\res\layout\com_facebook_device_auth_dialog_fragment.xml:22: AAPT: error: attribute cardBackgroundColor (aka com.test.k22:cardBackgroundColor) not found.
      
  C:\Users\Administrator\.gradle\caches\transforms-2\files-2.1\a3890adfdb75cc00c9c342ba929acf1b\res\layout\com_facebook_device_auth_dialog_fragment.xml:22: AAPT: error: attribute cardElevation (aka com.test.k22:cardElevation) not found.
      
  C:\Users\Administrator\.gradle\caches\transforms-2\files-2.1\a3890adfdb75cc00c9c342ba929acf1b\res\layout\com_facebook_smart_device_dialog_fragment.xml:22: AAPT: error: attribute cardBackgroundColor (aka com.test.k22:cardBackgroundColor) not found.
      
  C:\Users\Administrator\.gradle\caches\transforms-2\files-2.1\a3890adfdb75cc00c9c342ba929acf1b\res\layout\com_facebook_smart_device_dialog_fragment.xml:22: AAPT: error: attribute cardElevation (aka com.test.k22:cardElevation) not found.

https://mvnrepository.com/artifact/androidx.cardview/cardview/1.0.0


Download cardview-1.0.0.aar and import it into Assets/Plugins/Android directory.

Read More: