Converted to Android Studio and gradle