If errors occur make sure that:
- You have Google Repository installed in the SDK Manager
- You have Google Play Services installed in the SDK Manager
- You have pressed the "Sync Project with Gradle Files" button in Android Studio (5th icon from the right)