support android build

Fixed according to guidance.