I tried to update all the libraries, but i still got errors. I am able to run the app on the simulator, but when I export the APK and run it on a real android device, the ap
After long hours of research a simple solution of this problem i.e just add
-keep class android.support.v7.widget.SearchView { *; }
in app/proguard/android.proguard file of AndroidStudio.
Cheers!