Google play services out of date. Requires 5089000 but found 3136130

后端 未结 2 1655
清歌不尽
清歌不尽 2021-01-13 20:57

I\'m trying to use Google cloud messaging for an android app (Target name: Google APIs, platform: 4.3, API level: 18.

I impleme

2条回答
  •  误落风尘
    2021-01-13 21:41

    If you need to provide an option for the user to update the google services you can do this:

       switch (isGooglePlayServicesAvailable(this)) {
            case 2: //out date
                try {
                    GooglePlayServicesUtil.getErrorDialog(2, this, 0).show();
                } catch (Exception e) {
                    e.printStackTrace();
                }
                break;
    
        }
    

    This will prompt an update dialog for the user to update play services

提交回复
热议问题