这个活动最初是有效的,但后来它突然停止工作,它向我显示了这个错误。我不知道如何解决它,我不记得从我的 app.gradle 文件中删除任何内容,但有人知道如何解决它吗?任何帮助将不胜感激
下面是我的密码视图主要活动(下面显示的 XML 有错误)''' PasscodeView PasswordView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_password_view);
PasswordView = findViewById(R.id.PasswordView);
PasswordView.setPasscodeLength(4)
.setLocalPasscode("1234")
.setListener(new PasscodeView.PasscodeViewListener() {
@Override
public void onFail() {
Toast.makeText(PasswordView.this, "Passcode do not match",Toast.LENGTH_SHORT).show();
}
@Override
public void onSuccess(String number) {
Intent intent = new Intent(PasswordView.this,Main2Activity.class);
startActivity(intent);
}
});
}}
'''