fixed android unit test compile bugs and change sdk from 18 to 17