Android 与Google Plus的contentURL共享文本不会填充文本字段

Android 与Google Plus的contentURL共享文本不会填充文本字段,android,url,google-plus,Android,Url,Google Plus,此代码直接来自Google的 问题是文本不会填充shareIntent中的文本字段,尽管会显示Google开发者链接 注释掉setContentURL行(如下所示)将使文本字段填充,然而,GoogleDevelopers链接并没有按预期显示 // Launch the Google+ share dialog with attribution to your app. Intent shareIntent = new PlusShare.Builder(this) .setT

此代码直接来自Google的

问题是文本不会填充shareIntent中的文本字段,尽管会显示Google开发者链接

注释掉setContentURL行(如下所示)将使文本字段填充,然而,GoogleDevelopers链接并没有按预期显示

  // Launch the Google+ share dialog with attribution to your app.
  Intent shareIntent = new PlusShare.Builder(this)
      .setType("text/plain")
      .setText("Welcome to the Google+ platform.")
  //  .setContentUrl(Uri.parse("https://developers.google.com/+/"))
      .getIntent();

  startActivityForResult(shareIntent, 0);

有什么想法吗?

您正在使用哪个版本的Google Play服务?如果你不在上面,你能试着更新到最新版本(4.2)吗?FWIW,我也有同样的问题。Ian Barber将游戏服务升级到4.2(4.2.42)的解决方案成功了!不幸的是,这个解决方案对我不起作用。我的GS4是谷歌Play服务的4.2.43版,我刚刚将我的HTC更新为4.2.43版,我在这两款设备上仍然存在相同的问题。我还刚刚将Google+更新为最新版本4.2.4.58179886。我将尝试更新我的sdk,看看是否可能。更新Google Play Services sdk也不起作用。正在等待有人回答此问题:/
  // Launch the Google+ share dialog with attribution to your app.
  Intent shareIntent = new PlusShare.Builder(this)
      .setType("text/plain")
      .setText("Welcome to the Google+ platform.")
  //  .setContentUrl(Uri.parse("https://developers.google.com/+/"))
      .getIntent();

  startActivityForResult(shareIntent, 0);