[英]What is this error when I trying to change app icon in a flutter project
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
C:\Users\Kumudu Wijewardhana\AndroidStudioProjects\testing_app\android\app\src\main\res\mipmap-hdpi\app icon.png:资源和资产合并:''不是有效的基于文件的资源名称字符:文件基于 - 的资源名称必须仅包含小写 az、0-9 或下划线
FAILURE: Build failed with an exception.
FAILURE:构建失败并出现异常。
What went wrong: Execution failed for task ':app:mergeDebugResources'.
出了什么问题:任务“: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
C:\Users\Kumudu Wijewardhana\AndroidStudioProjects\testing_app\android\app\src\main\res\mipmap-hdpi\app icon.png:错误:''不是有效的基于文件的资源名称字符:基于文件的资源名称只能包含小写 az、0-9 或下划线
Try: Run with --stacktrace option to get the stack trace.
尝试:使用 --stacktrace 选项运行以获取堆栈跟踪。 Run with --info or --debug option to get more log output.
使用 --info 或 --debug 选项运行以获得更多日志 output。 Run with --scan to get full insights.
运行 --scan 以获得完整的见解。
Check the name of icon.检查图标的名称。
The error is File-based resource names must contain only lowercase az, 0-9, or underscore
错误是
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
.您应该将应用程序图标名称更改为
app_icon.png
而不是app icon.png
。
Do not add space(" ") to the name of your resources.不要在资源名称中添加空格(“”)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.