I found this error when upgrading from androidx.appcompat: appcompat: 1.0.0 to 1.1.0.
None of the other answers were useful to me, since setting the button attribute to @null or @android: color / transparent does not work on the Android API level 20 or lower.
I changed my CheckBox to ToggleButton and assigned the textOn and textOff attributes an empty string
<ToggleButton
...
android:background="@drawable/custom_selector"
android:textOff=""
android:textOn="" />
This way I can update the AndroidCompat application to version 1.1.0
source
share