Error with the image when running a app, after Android Studio update

9.6k Views Asked by At

I just update to new version of Android Studio and my app stop this displaying in the preview screen.

The error that I get is this:

Error:Execution failed for task ':app:mergeDebugResources'.

C:\Users\So BE\AndroidStudioProjects\SustainableBusinessCard\app\src\main\res\drawable\SDlogo_black.jpg: Error: 'S' is not a valid file-based resource name character: File-based resource names must contain only lowercase a-z, 0-9, or underscore

I try to change the name of image "SDlogo_black" to "sdlogoblack", but it still does not work, following the suggestion of this question

Any help will be appreciated it.

1

There are 1 best solutions below

0
On BEST ANSWER

According to docs, while naming to resources in Android SDK you have to name it in only lowercase a-z, 0-9 or underscore. After naming resource according to docs, just clean and rebuild your project.