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

拟墨画扇 提交于 2019-12-01 07:15:38

The final solution was creating a new emulator under Android 4.4.2, with the build target of the project set to Google APIs (x86 System Image). Thanks to Pedro Oliveira!

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!