Android GooglePlayServicesUtil.getErrorDialog() does not show the dialog

后端 未结 1 1490
清酒与你
清酒与你 2021-02-08 03:15


I am trying to check the availability of Google Play Services APK prior to using it. I have got a device where the package is out of date (the log reads \

1条回答
  •  梦毁少年i
    2021-02-08 03:51

    I encountered some bizarre behavior with code similar to yours when I was including the Google Play Services Library improperly in my project. You have to import as a project the google-play-services_lib directory and you have to include google-play-services.jar in your classpath. The reason is that the project contains a bunch of resources including the ones necessary for displaying the appropriate dialog for getErrorDialog().

    0 讨论(0)
提交回复
热议问题