0

I am having an issue where I can not link my layout files to my java classes. I am importing code that I know worked into another project, and I moved all the source code and its associated layout xml files to the other project. (copy and paste)

Is their a way to link them back>

Here is an example:

setContentView(R.layout.activity_camera_protocol_demo);

It can not resolve activity_camera_protocol_demo.

Is their a fix for this?

It also does this with text views and buttons ect that are on the layout file.

john jil
  • 41
  • 7

1 Answers1

1

Go to Build --> Rebuild Project. It solved to me all the problems I had.

Francisco Romero
  • 12,787
  • 22
  • 92
  • 167