ERROR No package identifier when getting value for resource number

后端 未结 11 2184
醉话见心
醉话见心 2020-12-03 10:21

Both activities are in the same package

Second activity uses second layout file

setContentView(R.layout.main2);

Errors on this line

11条回答
  •  感动是毒
    2020-12-03 11:05

    Just for the protocol, You could also use:

    TextView.setText("" + intVar) instead of TextView.setText(intVar)

提交回复
热议问题