ERROR No package identifier when getting value for resource number

后端 未结 11 2186
醉话见心
醉话见心 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 10:55

    I was using Picasso library to load image from the network. The urls are in a ArrayList I wasn't using arraylist.get() to get the position of the url in the ArrayList.

提交回复
热议问题