Updated gradle sample project

I updated the example to work with the latest gradle android plugin and Android Studio. I am opening a PR to let @yDelouis review, since i am not a daily gradle user and i am not 100% sure that everything is right.