Made change for the project compile with Android Studio 0.6 and Gradle plugin 0.11

I'm also corrected 2 mistakes in variables name and visibility.