ERROR No package identifier when getting value for resource number

后端 未结 11 2178
醉话见心
醉话见心 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:01

    face with the same error

    finally i found its not a error due to your xml layout

    somewhere in your code set TextView.setText(int)

    try TextView.setText( Integer.toString(int));

提交回复
热议问题