Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why android xml file name must contains only lowercase letters and digits ([a-z0-9_.])?

I am usually name my file in camelCase (like tabActive). But it is not allowed in Android.

Is there any reason why android xml file name must contains only lowercase letters and digits ([a-z0-9_.])?

Error:Gradle: Execution failed for task ':app:mergeDebugResources'.

/home/trungdq/.../res/drawable/tab-active.xml: Error: Invalid file name: must contain only lowercase letters and digits ([a-z0-9_.])

like image 850
Tony Dinh Avatar asked Oct 21 '22 03:10

Tony Dinh


1 Answers

It's simple: out of xml filenames the Java constants get generated. The later have very strict rules about how they may be built

like image 125
injecteer Avatar answered Oct 23 '22 11:10

injecteer