C:\Users\Kumudu Wijewardhana\AndroidStudioProjects\testing_app\android\app\src\main\res\mipmap-hdpi\app icon.png: Resource and asset merger: ' ' is not a valid file-based resource name character: File-based resource names must contain only lowercase az, 0-9, or underscore
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':app:mergeDebugResources'.
C:\Users\Kumudu Wijewardhana\AndroidStudioProjects\testing_app\android\app\src\main\res\mipmap-hdpi\app icon.png: Error: ' ' is not a valid file-based resource name character: File-based resource names must contain only lowercase az, 0-9, or underscore
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Check the name of icon.
The error is File-based resource names must contain only lowercase az, 0-9, or underscore
Lets change the name correct validate.
The error is talking about your app icon having a space(" ") in its name. You should change your app icon name to app_icon.png
instead of app icon.png
.
Do not add space(" ") to the name of your resources.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.