If you want to learn more about the Android Gradle Plugin setting check out the [android-gradle
Documentation](http://stackoverflow.com/documentation/android-gradle).
If you are interested in alternative emulators, you could look at Genymotion. It provides a free plan and requires smaller amount of RAM.