I am currently trying to implement a navigation drawer in my app. I am having an issue with the Toolbar being null. I have done many searches online and tried many different
In my own case, i had used
@Bind(R.id.toolbar)
protected Toolbar toolbar;
at the top of my code but forgot to do
ButterKnife.bind(this);
inside onCreate() method
I hope that helps someone
Remember to add
compile 'com.jakewharton:butterknife:7.0.1'
to your build.gradle dependencies and import
import butterknife.Bind;
import butterknife.ButterKnife;
in your java code and rebuild your app.