Update SDK version to 21
Fix compilation error  (remove switch-case for R class's field in the library code)