Java 错误:“F”不是有效的基于文件的资源名称字符:基于文件的资源名称必须仅包含小写字母 az、0-9 或下划线

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/35543899/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-11 16:48:25  来源:igfitidea点击:

Error: 'F' is not a valid file-based resource name character: File-based resource names must contain only lowercase a-z, 0-9, or underscore

javaandroid

提问by Cvele

Error:

错误:

'F' is not a valid file-based resource name character: File-based resource names must contain only lowercase a-z, 0-9, or underscore

'F' is not a valid file-based resource name character: File-based resource names must contain only lowercase a-z, 0-9, or underscore

 <?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<alpha
    android:duration="2000"
    android:fromAlpha="0.0"
    android:toAlpha="1.0"
    android:interpolator="@android:anim/accelerate_interpolator" />
</set>

Where is the mistake? I do not see

错误在哪里?我没有看到

采纳答案by prograde

The error is not in the XML code but in the filename. Check the filenames in your res directories! Seems like one of the files has a capital 'F' in its filename.

错误不在 XML 代码中,而在文件名中。检查 res 目录中的文件名!似乎其中一个文件的文件名中有一个大写的“F”。