来自于:http://stackoverflow.com/questions/37649106/cant-add-firebase-to-Android-app
Go to Tools->Android->SDK Manager.
In SDK Tools tab update 'Google Play services' and 'Google Repository' to minimum 30 and 28 respectively.
Sync project with Gradle files.