Migrating library to Android Studio and Gradle