Migrate project to Gradle build system and Android studio