1

According to Google I/O 2016,I know the "Firebase",it is very nice for me,but I can not use it because this error.I have get a solution that update "Google play services" to 30,but no update tips.

enter image description here

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
zys
  • 1,306
  • 3
  • 18
  • 37

2 Answers2

12

You have to update your SDK Manager

enter image description here

Also you have to use

classpath 'com.google.gms:google-services:3.0.0'

in your buildscript block and this version has to work with Google Play services 9.0 (+).

Gabriele Mariotti
  • 320,139
  • 94
  • 887
  • 841
3

try this

com.google.firebase:firebase-core:9.0.0

instead of

com.google.firebase:firebase-analytics:9.0.0
Vinoth Kannan
  • 242
  • 5
  • 16