Grade Build Error: 'A' is not a valid file-based resource name character

I am using Android Studio 2.1.1 and have included my license file in the res/raw folder, but I get the following error from Gradle:

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

This refers to the Aspose.Total.Android.lic.xml file, but I don’t know where specifically.

1 Like

Fixed it!
The name of the license file cannot be Aspose.Total. etc.

I changed the file name to aspose_total_android_lic.xml and it worked.

1 Like

Hi Daniel,

Thanks for your inquiry. It is nice to hear from you that your problem has been solved. Please read following documentation links for your kind reference.

1 Like