OnClick method is not work when used the R2.id.xxx.

Author: tqlmorepassionCreated May 20, 2020Updated Apr 14, 2022
LabelsNeeds Info

butterKnifePlugin--10.1.0 Gradle 3.4.2

We found that we did not know what circumstances would cause this problem, but we did encounter it several times. Once encountered, only killing the process will return to normal.

just like:

@OnClick(R2.id.tv_close) public void onViewClicked() { onBackPressed(); }