Revert "Revert "Updated add with gradle""

This reverts commit 3322145ea5be125b90a33cf740ec87e96113ce3a.