Kotlin cambia editable a int
int x = Integer.parseInt(R2.getText().toString());
HRZP
int x = Integer.parseInt(R2.getText().toString());