Null Pointer exception when using SearchView with AppCompat

前端 未结 2 1272
野的像风
野的像风 2021-01-04 06:19

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

2条回答
  •  一生所求
    2021-01-04 06:46

    Maybe it's an obfuscation issue...

    Try adding this to your proguard file:

    -keep class android.support.v7.widget.SearchView { *; }
    

提交回复
热议问题