Lisa Anne
Lisa Anne

Reputation: 4595

Android Studio: 'name' attribute should be defined

Today I have opened Android Studio and this is what I find: enter image description here

and the same is happening for my resources files (strings, styles, dimensions, colors): enter image description here

Upvotes: 3

Views: 2918

Answers (1)

aga
aga

Reputation: 29416

<string> and <activity> elements don't have the attribute called 'eventName'. They have the required element 'name' which in your case is missing.
Looks like you've made the search-and-replace operation and replaced 'name' attributes with 'eventName' by mistake. Revert this replacement and the issue will disappear.

Upvotes: 11

Related Questions