[Android]This app won't run unless you update google play services

I implemented a google account sign in button for my app, when I open the app (Android 6.0.1) and enter the sign in page, it shows a dialog saying "This app won't run unless you update google play services"

This is my code:

compile 'com.google.android.gms:play-services:9.2.1' compile 'com.google.android.gms:play-services-auth:9.2.1'  public void onCreate(Bundle savedInstanceState){         super.onCreate(savedInstanceState);          GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)                 .requestEmail()                 .build();         mGoogleApiClient = new GoogleApiClient.Builder(getActivity().getApplicationContext())                 .addApi(Auth.GOOGLE_SIGN_IN_API)                 .addConnectionCallbacks(this)                 .addOnConnectionFailedListener(this)                 .build();         mGoogleApiClient.connect();     } 

I checked the google play services on my android device is 8.1.86 Is that because 8.1<9.2? How to avoid this message for my users who has outdated google play services app?

Replay

Install Google APIs (x86 System Image) from the Android SDK Manager then create a new android virtual device in AVD manager and choose Google APIs x86 (Google Inc.) - (API the your currently using).

Category: android Time: 2016-07-29 Views: 0

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.125 (s). 12 q(s)