android add picture error use

Android development how to insert a picture with the suffix xhdpi xxxhdpi in the drawable folder

1 : When copying pictures into the drawable folder, add "-xhdpi" after the path

2. Create a new drawable-xhdpi folder directly under the drawable folder. When you add pictures, you will be asked to choose which folder to put the pictures in. 

Of course, creating other formats can also modify the suffix

 

Sometimes adding will report an error as follows:

 > XXXXX\Instructions_use.jpg: Error: 'I' is not a valid file-based resource name character: File-based resource names must contain only lowercase a-z, 0-9, or underscore。

XXXXX\Instructions_use.jpg: Error: 'I' is not a valid file-based resource name character: File-based resource names must contain only lowercase letters az, 0-9 or underscore.

Do not capitalize the name.



 

 


 

Guess you like

Origin blog.csdn.net/s_sos0/article/details/131301098