在模拟器上安装Google Plus应用程序(Android)

时间:2013-08-16 17:12:48

标签: android google-plus sharing

  
    

我想在Android应用中集成Google Plus共享功能。但为此,需要安装Google Plus应用程序。

         

所以我想在Emulator中加入Google Plus App。我使用的是Android 4.2.2 SDK。如何安装它?

  

我检查了配置。但是我在这里看到了这个问题:

  
    

int available = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);

  

这里说SERVICE_VERSION_UPDATE_REQUIRED.我现在可以做什么来进行服务更新?

任何帮助将不胜感激。

3 个答案:

答案 0 :(得分:1)

  

安装兼容版本的Google API平台。如果你想   要在模拟器上测试您的应用,请展开Android目录   4.2.2(API 17)或更高版本,选择Google API,然后安装它。然后使用Google API作为平台目标创建一个新的AVD。   注意:仅限Android 4.2.2及更高版本的Google API   平台包括Google Play服务。

您可以详细了解如何设置Google Play服务here

答案 1 :(得分:0)

这些模拟器上的Google Play服务仅仅是过时的,不会更新。使用Google API等级为19(Android 4.4)的最新模拟器。

此处有更多信息:SERVICE_VERSION_UPDATE_REQUIRED and Google play service out of date while integrating Google Plus in android

答案 2 :(得分:0)

用于开发和测试的物理设备,因为Google Play服务只能安装在运行基于Android 4.2.2或更高版本的Google API平台的AVD的模拟器上。有关详细信息check this