Fix gradle bugs.