I was working on my app and everything was normal until I tried to display image in java.
I ran the app once and it ran normally, the picture was displayed. After th
make sure that the imported R is not from another module. I had moved a class from a module to the main project, and the R was the one from the module.