[android] enhance task needs to run before jar is built