GoogleApiAvailability missed with firebase-messaging:9.4.0

Declaring dependencies as

compile ''

I get “can not resolve symbol GoogleApiAvailability” message in the activity’s import row


What is wrong?

  • not question’s duplicate: Google Play Services are already on the latest version


Add this line to your build file dependencies:

compile ''

play-services-base is the Play Services base client library and is listed in the Play Services Setup Guide.