Switch to gradle

Close project in Idea or Android Studio.
Pull from GitHub.
Delete all dirs bin, gen, out,.idea and files *.iml.
Be sure to install the "Google Repository" in "Android SDK Manager".
Import project in Android Studio.