This activity was originally working but then it suddenly stopped working and it showed me this error. I'm not sure how to fix it and I don't recall removing anything from my app.gradle files but does anyone know how to solve it? Any help would be greatly appreciated
Below is my passcode view main activity (XML shown below with error) ''' 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);
}
});
}}
'''
androidx.legacy.widget.Space
comment as follows:@deprecated Use framework {@link android.widget.Space} class instead.
android.googlesource.com/platform/frameworks/support/+/… – Link