Solvedbutterknife All bind view are null

public class AccountFragment extends BaseFragment {

    @Bind( ) EditText editText_email;
    @Bind( ) EditText editText_password;
    @Bind( ) TextView textView_contract;

    private Realm realm;

    public View onCreateView( LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState ) {

        View rootView = inflater.inflate( R.layout.fragment_sign_in, container, false );
        setRootView( rootView );
        ButterKnife.bind( this, rootView );

        return rootView;

ButterKnife 8.0.0 snap shot
ButterKnife 7.0.1

editText_email / editText_password / textView_contract are null ,

my project in android studio
compileSdkVersion 23 ( tried v22 )
multiDexEnabled true
Application extended MultiDexApplication
turn off proguard

and use rxAndroid, realm, kotlin

plz Help

error log :

D/ButterKnife: Looking up view binder for com.moka.earlybird.application.mvc.controller.account.AccountFragment
D/ButterKnife: Not found. Trying superclass com.moka.framework.controller.BaseFragment
D/ButterKnife: Not found. Trying superclass
D/ButterKnife: MISS: Reached framework class. Abandoning search.
37 Answers

✔️Accepted Answer

For mixed Java/Kotlin projects add the following lines to your module level build.gradle

apply plugin: 'kotlin-kapt'
dependencies {
    compile 'com.jakewharton:butterknife:8.5.1'
    kapt 'com.jakewharton:butterknife-compiler:8.5.1'
kapt {
    generateStubs = true

Other Answers:

Alight I found the problem if you are using Kotlin+Java in your project but still want to use annotation processing in your Java classes replace apt with kapt.
Check this link:

Didn't know why but at one moment the same problem appeared. Changing
annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1' to kapt 'com.jakewharton:butterknife-compiler:8.5.1' solved the problem.

I'm using Kotlin.

Am I the only one to notice that with kapt, it is often necessary to clean the project? Every now and then, after making changes to code (layout or activities, doesn't seem to matter), my app crashes with a null pointer because of a null view. A project cleaning always fixes it. Looks like it could be related to that: but it's supposed to be fixed.

I simply removed the Kotlin from my project and it started working again.