guard against android sdk errors