Tag Archives: # Android->Bugs

Error inflating class android.support.v7.widget.SearchView

My new book , introduction and actual practice of Android App development has been published by posts and telecommunications publishing house in August, 2020. Please buy it. Click to enter details

Recently in reference to a SDK package, as soon as I open flash back, look at the log tip: Error inflating class. Android support. V7. Widget. The SearchView. There should be no problem with the
code. The most likely problem is that the dependent library version number is compatible.
so to SDK project check and found that there are the red tip:

meaning is for all the support library must be the version number is consistent, otherwise may lead to crash.