build.bash: buildandroid() - added more checks
build.bash: buildandroid() - added more checks

ZachGoldberg/asmack,lizhangqu/asmack,Flowdalic/asmack,tks-dp/asmack,tks-dp/asmack,lizhangqu/asmack,chuangWu/asmack,Flowdalic/asmack,ZachGoldberg/asmack,lovecc0923/asmack,chuangWu/asmack,lovecc0923/asmack