android studio:Error inflating class

We just need to add the custom components of XML is changed to:


At the same time, the most important thing is to rely on it. This will not be reported wrong. I found it only after looking for someone else’s blog

implementation ‘androidx.swiperefreshlayout:swiperefreshlayout:1.0.0’

Read More: