Validates using resource IDs in a switch statement in Android library module.
Resource IDs are non final in the library projects since SDK tools r14, means that the library code cannot treat these IDs as constants.