1

Here's the sort of thing I'm experiencing:

Layout attributes not recognized

When I hover over any of the attributes like android:id, for example, I see the following:

Attribute android:id is not allowed here

I've tried cleaning the project, syncing the project with Gradle files, rebuilding the project, and lastly, invalidating caches and restarting. Yet, nothing I do seems to fix it.

Any help would be highly appreciated.

Edit: Problem was solved by deleting, recloning, and rebuilding the project.

danmaze
  • 319
  • 3
  • 8
  • This seems related to https://stackoverflow.com/questions/21100688/android-studio-suddenly-cannot-resolve-symbols. Reading through that one now... – danmaze Sep 12 '21 at 13:50
  • make sure your parent layout has `xmlns:android="http://schemas.android.com/apk/res/android"` – AmrDeveloper Sep 12 '21 at 14:32
  • 1
    Problem resolved. I deleted the entire project directory and cloned it again from the remote repo. – danmaze Sep 12 '21 at 16:03

0 Answers0