I do not know why this is happening:
If I write the following code:
TextView textView = new TextView(this);
textView.setId(1);
1 , since id is not working and gives me a warning:

It does not work in the following values:
textView.setId(0+1);
textView.setId(var++);
but not valid
textView.setId(1);
Does anyone know about this? Can anyone explain this?
source
share