butterknife icon indicating copy to clipboard operation
butterknife copied to clipboard

Null object reference and onClick not working

Open hafiz013 opened this issue 4 years ago • 1 comments

build:gradle:4.0.1 com.jakewharton:butterknife:10.2.3

sample code @BindView(R2.id.etPassword) AppCompatEditText etPassword;

@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main_login);{ ButterKnife.bind(this); etPassword.setTransformationMethod(new PasswordTransformationMethod()); <-- Attempt to invoke virtual method 'void androidx.appcompat.widget.AppCompatEditText.setTransformationMethod(android.text.method.TransformationMethod)' on a null object reference

@OnClick(R2.id.login) public void login() { }. <--- this listener not working. why? I already use androidx

hafiz013 avatar Sep 28 '20 04:09 hafiz013

hallo any update here

hafiz013 avatar Oct 12 '20 04:10 hafiz013