Getting this exception when I created a new project with a new Activity.
Exception raised during rendering: Could not find layout resource matching value 0x7F04001B (resolved name: content_main) in current configuration.
When I go into the content_main
, I do see a proper image and no rendering problems.
Here is another way to get rid of this error.
I have been getting the same issues since I updated Android Studio. It seems to be affecting only layouts with include tags in them.
If you go to "File > Invalidate Caches/Restart...", click "Invalidate and Restart", then wait a minute or two wile AS does its thing it should cause them to show up again.
go to "File > Invalidate Caches/Restart...", click "Invalidate and Restart",then comment out whole code then remove the comment. It worked for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With