Search code examples
androidandroid-layoutandroid-studio

Exception raised during rendering: Could not find layout resource matching value 0x7F04001B (resolved name: content_main) in current configuration


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.

enter image description here

When I go into the content_main, I do see a proper image and no rendering problems.

enter image description here


Solution

  • 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.