Quick solution: Replace id.imageView
with R.id.imageView
.
What happens is, when you want to reference an ID, you go to the R
(Resources) directory provided by android. You have to go to the resources directory (R
), and then in there there’s the id
directory. Then there’s your id. So, the final result is R.id.imageView
.
2
solved Error on findViewById – Subsampling Scale Image View – Android [closed]