android - 适用于 Android 的 Google Plus SDK : "Activity started without an EXTRA_ACCOUNT"

标签 android eclipse google-plus google-play-services

我正在玩 Google Plus 示例应用程序。当我点击“+1”时,我可以在“确定”或“分享”之间进行选择。当我单击“确定”时,一切正常。但是当我点击“分享”时,我收到一条警告说“Google Plus 应用程序已停止”和此后的日志。知道如何避免这个问题吗?谢谢!!!

11-04 11:07:58.848: E/AndroidRuntime(26593): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.google.android.apps.plus/com.google.android.apps.plus.phone.ShareActivity}: java.lang.IllegalStateException: Activity started without an EXTRA_ACCOUNT
11-04 11:07:58.848: E/AndroidRuntime(26593):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2246)
11-04 11:07:58.848: E/AndroidRuntime(26593):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2296)
11-04 11:07:58.848: E/AndroidRuntime(26593):    at android.app.ActivityThread.access$700(ActivityThread.java:151)
11-04 11:07:58.848: E/AndroidRuntime(26593):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1281)
11-04 11:07:58.848: E/AndroidRuntime(26593):    at android.os.Handler.dispatchMessage(Handler.java:99)
11-04 11:07:58.848: E/AndroidRuntime(26593):    at android.os.Looper.loop(Looper.java:137)
11-04 11:07:58.848: E/AndroidRuntime(26593):    at android.app.ActivityThread.main(ActivityThread.java:5293)
11-04 11:07:58.848: E/AndroidRuntime(26593):    at java.lang.reflect.Method.invokeNative(Native Method)
11-04 11:07:58.848: E/AndroidRuntime(26593):    at java.lang.reflect.Method.invoke(Method.java:511)
11-04 11:07:58.848: E/AndroidRuntime(26593):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
11-04 11:07:58.848: E/AndroidRuntime(26593):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
11-04 11:07:58.848: E/AndroidRuntime(26593):    at dalvik.system.NativeStart.main(Native Method)
11-04 11:07:58.848: E/AndroidRuntime(26593): Caused by: java.lang.IllegalStateException: Activity started without an EXTRA_ACCOUNT
11-04 11:07:58.848: E/AndroidRuntime(26593):    at brz.onCreate(PG:169)
11-04 11:07:58.848: E/AndroidRuntime(26593):    at com.google.android.apps.plus.phone.PostActivity.onCreate(PG:77)
11-04 11:07:58.848: E/AndroidRuntime(26593):    at com.google.android.apps.plus.phone.ShareActivity.onCreate(PG:156)
11-04 11:07:58.848: E/AndroidRuntime(26593):    at android.app.Activity.performCreate(Activity.java:5250)
11-04 11:07:58.848: E/AndroidRuntime(26593):    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1097)
11-04 11:07:58.848: E/AndroidRuntime(26593):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2210)

最佳答案

这是 Google+ 应用程序中的一个错误,已在今天发布的最新版本中修复:https://plus.google.com/101870761930221849874/posts/KohXe9pBGF6对此感到抱歉。

关于android - 适用于 Android 的 Google Plus SDK : "Activity started without an EXTRA_ACCOUNT",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19766473/

相关文章:

android - 如何对 SimpleCursorAdapter 支持的 Android ListView 进行文本过滤?

android - 在帐户工具包中禁用使用电子邮件登录

javascript - Google Plus 和 Javascript - 选择圈子时禁用滚动?

android - Google+ 登录在 Android fragment 上无法正常工作

google-plus - Google+ 退出时不弹出对话框

android - 如何使我的应用程序全屏显示?

android - ViewModelProviders 在 1.1.0 中已弃用

java - eclipse无法导入apache tika src

c++ - 将 eclipse 格式转换为 .clang 格式或在 vscode 中使用 eclipse 格式器

java - Libgdx-Gradle 运行时错误