Today I have spent the time to migrate to the AppCompat library. I have setup everything successfully except my SearchView.
Before, it functioned properly, but now I
Maybe it's an obfuscation issue...
Try adding this to your proguard file:
-keep class android.support.v7.widget.SearchView { *; }
I had to do 3 things for this to work:
-keep class android.support.v7.widget.SearchView { *; }
(then I saved the file)
but I changed it to this
app:actionViewClass="android.support.v7.widget.SearchView" (the only difference being the word android and app)
So it currently looks like this:
<item android:id="@+id/action_search"
android:icon="@drawable/ic_action_search"
android:title="@string/action_search"
app:showAsAction="collapseActionView|ifRoom"
android:orderInCategory="1"
app:actionViewClass="android.support.v7.widget.SearchView" />
I ran it and it finally worked! No more null pointer exception! :)