Closed voquanghoa closed 5 years ago
If you can provide a sample project that demonstrates the problem I'd be happy to take a look.
@voquanghoa It's my understanding that this happens if your layout has some Views with visibility set to GONE. Similar thing was happening to me, and once I added @Optional above my @OnClick method, everything worked great, and once the view was set to VISIBLE, all onClick methods worked fine and were not troubled by that @Optional annotation.
Hello,
I'm using the ButterKnife in many Android projects, it works perfectly. However, sometimes, I got this runtime error and it makes the application crash.
I'm not sure why this issue happens but it could not come from my code because if I just clean the project and rebuild again, it works. Seem it happens randomly when I made the app and deploy the app to run on phones.
Bellow is my gradle file. I'm using Kotlin with Android studio 3.1.4 on MacOS 10.13.6, gradle-4.4, no progrard, Java 8 update 181 build 13
Could you check this issue and improve the library/plugin because the issue makes me waste time and it really bothers me (or maybe many other developers)
Thank you.