Butterknife: @BindView fields must not be private or static.

Created on 28 Apr 2016  Â·  4Comments  Â·  Source: JakeWharton/butterknife

@BindView fields must not be private or static. i don't know,why??

Most helpful comment

Because the generated code needs to be able to assign the values.

All 4 comments

Because the generated code needs to be able to assign the values.

Views are private then @BindView not allow.
@ut2014 you only delete private it will done

@JakeWharton Can butterknife work with private variables that have setter? That seems to be a more robust way of doing things.

No

On Mon, Oct 8, 2018 at 5:20 PM Aditya Chaturvedi notifications@github.com
wrote:

@JakeWharton https://github.com/JakeWharton Can butterknife work with
private variables that have setter? That seems to be a more robust way of
doing things.

—
You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub
https://github.com/JakeWharton/butterknife/issues/518#issuecomment-427982879,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAEEEUUGst3Ce2gvPxLfUKFwJQQ9JNWOks5ui8GRgaJpZM4IRqdJ
.

Was this page helpful?
0 / 5 - 0 ratings