Extract common android build configuration.