And then in the other gradle file(may be your app gradle or your own module library gradle, but never add in both of them to avoid conflict.) ...