Lint should flag these now (use 1.1 rc2). We should consider upping the severity from error to fatal such that it's run automatically in release builds and will abort the build.
... Ran lint on variant debug: 2 issues found Ran lint on variant release: 2 issues found /Users/tnorbye/AndroidStudioProjects/MyApplication29/app/src/main/res/drawable-anydpi: Error: Invalid resource folder: make sure qualifiers appear in the correct order, are spelled correctly, etc. [InvalidResourceFolder] Explanation for issues of type "InvalidResourceFolder": This lint check looks for a folder name that is not a valid resource folder name; these will be ignored and not packaged by the Android Gradle build plugin. Note that the order of resources is very important; for example, you can't specify a language before a network code. Similarly, note that to use 3 letter language or region codes, you have to use a special BCP 47 syntax: the prefix b+ followed by the BCP 47 language tag but with + as the individual separators instead of -. Therefore, for the BCP 47 language tag es-419 you have to use b+es+419. http://developer.android.com/guide/topics/resources/providing-resources.html https://tools.ietf.org/html/bcp47 On Mon, Feb 9, 2015 at 6:18 PM, Xavier Ducrohet <[email protected]> wrote: > This is not a valid qualifier. > > > http://developer.android.com/guide/topics/resources/providing-resources.html#AlternativeResources > > We do need to make Gradle be more obvious about the fact that it doesn't > process these folders. > > On Mon, Feb 9, 2015 at 4:54 PM, Camilo Arango Moreno <[email protected]> > wrote: > >> Hello, >> >> I am running into an issue where gradle build can't find resources that >> exist in folders that contain "anydpi" in the name. For example, >> res/drawable-anydpi. >> >> Is this a known issue? >> >> Thanks, >> >> Camilo. >> >> >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "adt-dev" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Xavier Ducrohet > Android SDK Tech Lead > Google Inc. > http://developer.android.com | http://tools.android.com > > Please do not send me questions directly. Thanks! > > -- > You received this message because you are subscribed to the Google Groups > "adt-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "adt-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
