When I updated my Android studio from 3.3 to 3.4.1, I was facing some interesting warning in my ImageView tag like: android:contentDescription attribute is unknown
. How I can resolve this warning? Or is it a bug of new Android Studio 3.4.1?
Asked
Active
Viewed 3,560 times
7

Prashant Patel
- 1,087
- 11
- 18

Mayur Misal
- 806
- 10
- 13
-
2Obviously, that is not a bug. You can check this here which is properly explained https://stackoverflow.com/a/9731353/9162370 – Mohit Dholakia Jun 19 '19 at 11:04
-
Possible duplicate of ['Missing contentDescription attribute on image' in XML](https://stackoverflow.com/questions/9730673/missing-contentdescription-attribute-on-image-in-xml) – Prashant Patel Jun 19 '19 at 13:56
-
7Thanks for answering, but it's not duplicate. Also same warning for "android: padding". My question is specific, I got warning as "unknown attribute android:contentDescription" and second same warning for padding "unknown attribute android:padding". – Mayur Misal Jun 21 '19 at 07:37
-
I'm experiencing the same warning: `Unknown attribute android:contentDescription` on AS Chipmunk 2021.2.1 Patch 2. I'm also getting a similar warning for scaleType attribute: `Unknown attribute android:scaleType`. – spuente Sep 12 '22 at 04:19
-
1It looks related to a compileSdkVersion 33 issue. See https://stackoverflow.com/questions/72622172/unknown-attribute-warning-in-xml and https://issuetracker.google.com/issues/235792434 – spuente Sep 12 '22 at 04:26