Remove useless stuff and cleaunp the gradle file.