0

I am following the android tutorial on making your app location aware here
but when I run it in the emulator the below method

@Override
public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {
    Log.i("state", "Connection failed: ConnectionResult.getErrorCode() = " + connectionResult.getErrorCode());
}

shows in the Logcat:

Connection failed: ConnectionResult.getErrorCode() = 9

Does anyone know what ErrorCode 9 means?

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
Baz M
  • 75
  • 1
  • 10

1 Answers1

0

public static final int SERVICE_INVALID

The version of the Google Play services installed on this device is not authentic.

Constant Value: 9

Source: ConnectionResult

Are you running the emulator that uses the Google APIs?

OneCricketeer
  • 179,855
  • 19
  • 132
  • 245
  • 1
    Thanks, I had to update the emulator to a target version of android that includes google API's. Now it works. – Baz M Jun 06 '17 at 20:42