2
I’m new to Android and I’m having a difficult programming.
That part of the code always error in R
of findViewById
. When placing the mouse over the error appears the information Cannot Revolve simble "R"
, and just give me options to create a variable, class with the name and etc.
@SuppressLint("WrongViewCast")
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_cadastro);
nome = (EditText) findViewById(R.id.edtNome);
RE = (EditText) findViewById(R.id.edtRE);
senha = (EditText) findViewById(R.id.edtSenha);
button4 = (Button) findViewById(R.id.button4);
button4.setOnClickListener(this);
}
Ja I went through this once and it was an error in the Layout XML in your case can be in activity_registration or other
– Paulo
Could you post your xml? By chance you are using Android Studio Canary?
– Samuel Ives