简体   繁体   English

当我尝试更改 flutter 项目中的应用程序图标时,此错误是什么

[英]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.

相关问题 尝试在 vscode 上通过 flutter 运行应用程序时出现此错误 - I get this error when trying to run an app via flutter on vscode 尝试更改下一个活动的图标(setIcon)时,应用程序崩溃 - App crashes when trying to change icon (setIcon) for next activity 如何修复“错误:Flutter 目录不是 GitHub 项目的克隆。” 尝试安装 flutter 时出错? - How do I fix the "Error: The Flutter directory is not a clone of the GitHub project." error when I'm trying to install flutter? Flutter Pub 在尝试运行一些旧项目时出错 - Flutter Pub Get Error when trying to run some old project 尝试运行颤振项目时显示此 Gradle 错误 - showing this Gradle error when trying to run flutter project 我可以在 Flutter 中为 Android 应用程序安装应用程序后更改应用程序图标和名称吗? - Can I change the app icon and name after app installation in Flutter for an Android app? 如何更改 Flutter 应用的网站图标 - How to Change the Website icon for a flutter app 在尝试将Flutter与现有项目一起使用时,无法更改配置':flutter:releaseApi'的依赖关系 - Cannot change dependencies of configuration ':flutter:releaseApi' when trying to use Flutter with existing project 使用活动别名更改应用程序图标和名称时出现NameNotFoundException - NameNotFoundException when I change app icon and name with activity-alias 尝试在我的 Android 应用程序项目中添加电话身份验证时出现错误 - I am getting error when trying to add phone authentication in my Android app project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM