Feature #5972 : remove useless code of android java build