I added my Drawables
.png icons in different density folder but it is showing me lint above lint error -
The icon has identical contents in the following configuration folders: drawable-hdpi
, drawable-ldpi
, drawable-mdpi
, drawable-xhdpi
.
- suggest me solution
Asked
Active
Viewed 423 times
1

D.J
- 1,439
- 1
- 12
- 23

Code_Horizon
- 21
- 5
-
3I think you have put same icon in different folder. – D.J Jan 18 '17 at 05:50
-
what does the logcat show ? – Sadiq Md Asif Jan 18 '17 at 05:53
-
some image files are equal in listed directories. You didn't scale them – Vladyslav Matviienko Jan 18 '17 at 05:59
-
is there any way to edit resolution of this images?? – Code_Horizon Jan 18 '17 at 09:28
2 Answers
0
Your images should follow the Android design guidelines. Check the image sizes in different folders. You should follow the 2:3:4:6:8 scaling ratio between the five primary densities (medium, high, x-high, xx-high, and xxx-high respectively).
MDPI: 48x48 HDPI: 72x72 XHDPI: 96x96 XXHDPI: 144x144 XXXHDPI: 192x192
Check this answer for a detailed explanation: https://stackoverflow.com/a/21311302/2610010
0
Try to put your icon drawable into drawable-nodpi
(and remove all copies from other drawable-[density]
directories)

Petter Friberg
- 21,252
- 9
- 60
- 109

Kostek
- 147
- 13