简体   繁体   English

无效的文件名:必须仅包含[a-z0-9_。]

[英]Invalid file name: must contain only [a-z0-9_.]

I have file /FavoriteTwitterSearches/res/menu/FavoriteTwitterSearches.xml in my android project. 我的Android项目中有文件/FavoriteTwitterSearches/res/menu/FavoriteTwitterSearches.xml When I want to run the project - i get error "res\\menu\\FavoriteTwitterSearches.xml: Invalid file name: must contain only [a-z0-9_.]" . 当我想运行项目时-我收到错误消息“ res \\ menu \\ FavoriteTwitterSearches.xml:无效的文件名:必须仅包含[a-z0-9_。]” But if I change the file name for az,0-9 there is another errors in /R.java/R/string/confi like 但是,如果我将文件名称更改为az,0-9,则/R.java/R/string/confi/R.java/R/string/confi出现另一个错误,例如

Multiple markers at this line 这行有多个标记

- Duplicate field R.string.confi
- Syntax error on token "rmTitle", delete 

or Multiple markers at this line 或此行有多个标记

- Syntax error on token "rmMessage", delete 
 this token

"res\\menu\\FavoriteTwitterSearches.xml: the res folder accepts only small case letters change your file name to “ res \\ menu \\ FavoriteTwitterSearches.xml:res文件夹仅接受小写字母,将您的文件名更改为

favoritetwittersearches and it will work 最喜欢的twittersearches,它将起作用

Capital letters are not allowed in naming any .xml files. 在命名任何.xml文件时,不允许使用大写字母。 using it will give you an error. 使用它会给你一个错误。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 出现错误错误:res / menu / mainMenu.xml:无效的文件名:必须仅包含[a-z0-9_。] - getting error Error:res/menu/mainMenu.xml:invalid file name:must contain only[a-z0-9_.] res \ layout \ Contact_us.xml:文件名无效:必须仅包含[a-z0-9_。] - res\layout\Contact_us.xml: Invalid file name: must contain only [a-z0-9_.] "“无效的文件名:必须仅包含 [a-z0-9_.]”,用于 Android Studio 中的声音文件" - “INVALID FILE NAME: MUST CONTAIN ONLY [a-z0-9_.]“ for sound files in Android Studio java android:res \\ drawable-hdpi \\ Restaurant-Blue-2-icon.png:无效的文件名:必须仅包含[a-z0-9_。],无法修复 - java android: res\drawable-hdpi\Restaurant-Blue-2-icon.png: Invalid file name: must contain only [a-z0-9_.], cant fix 为什么android xml文件名必须只包含小写字母和数字([a-z0-9_。])? - Why android xml file name must contains only lowercase letters and digits ([a-z0-9_.])? Android Studio 解决方法:基于文件的资源名称必须仅包含小写 az、0-9 或下划线 - Android Studio Workaround: File-based resource names must contain only lowercase a-z, 0-9, or underscore APK的软件包名称必须采用以下格式“ com.example.myapp”。 它可能包含字母(az),数字和下划线(_) - APK's package name must be in the following format “com.example.myapp”. It may contain letters (a-z), numbers, and underscores (_) Firebase无效密钥:。 密钥不得包含&#39;/&#39;,&#39;。&#39;,&#39;#&#39;,&#39;$&#39;,&#39;[&#39;或&#39;]&#39; - Firebase Invalid key: . Keys must not contain '/', '.', '#', '$', '[', or ']' FirebaseException:无效的Firebase路径。 路径中不得包含“。”,“#”,“ $”,“ [” - FirebaseException: Invalid Firebase path. paths must not contain '.', '#', '$', '[' 与元素类型“item”关联的属性“name”的值不得包含“<”字符 - The value of attribute "name" associated with an element type "item" must not contain the '<' character
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM