在Android的资源不允许大写字母大写字母、不允许、资源、Android

2023-09-12 06:49:56 作者:来一杯寂寞

下面是一个小疑问,而不是question.So的讨论是值得欢迎的。最近,我的工作是在Android项目,并发现,如果把一个文件以大写字母在其名称在res /可绘制然后机器人婴儿床用R.stamp错误基本上是构建失败。说对例如,如果把一个名为picture.png,将建造好的,但不说picTure.png文件。难道它的一些问题与Android还是我失去了一些东西?

Here is a small doubt rather than a question.So a discussion is welcome. I recently was working on an android project and found that if a put a file with a capital letter in its name in the res/drawable then android cribs with a R.stamp error basically a build failure. Say for eg if put a file named picture.png it will build ok but not with say picTure.png . Is it some problem with android or am I missing something?

推荐答案

文件名必须只包含[A-Z0-9 _]。观察控制台时,你盖了

The file name must contain only [a-z0-9_.]. Observe the console when you build it