'Why I get "Expected field or method name at error"

Expected field or method name at ... -keepclassmembers class * { *** @null(android.view.View); }



Solution 1:[1]

I had the same problem and solved by removing android:onClick="@null" from one of my layout files.

Solution 2:[2]

In my case, I forgot to pass data binding event android:onClick="{}"

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Dharman
Solution 2 cigien