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
  • 499,950
  • 69
  • 739
  • 734
zys
  • 1,236
  • 3
  • 17
  • 34

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
  • 250,295
  • 77
  • 670
  • 690
2

try this

com.google.firebase:firebase-core:9.0.0

instead of

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