Migrate to gradle and android studio