0

I'm getting this error with ButterKnife:

error: cannot find symbol method findById(View,int)

TextView tvHeaderTextOne = ButterKnife.findById(headerView, R.id.tv_header_text_one);

After updating to Butterknife 10 getting the error unable to findById.

coroutineDispatcher
  • 7,718
  • 6
  • 30
  • 58
Anil kumar
  • 51
  • 2
  • 10

1 Answers1

2

define prop

@BindView( R.id.tv_header_text_one)
protected TextView tx ;

in OnCreate Method :

ButterKnife.bind(this,yourview);
mostafa tayebi
  • 315
  • 2
  • 9