Last active
August 29, 2015 14:10
-
-
Save dimanem/aeb561959f16da918e6f to your computer and use it in GitHub Desktop.
Google+ API for Android - crash when trying to share text
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Google Play Services Has Stopped! | |
Logcat: | |
E/AndroidRuntime﹕ FATAL EXCEPTION: main | |
Process: com.google.android.gms.ui, PID: 3883 | |
java.lang.IllegalArgumentException | |
at com.google.k.a.aj.a(SourceFile:72) | |
at com.google.android.gms.plus.audience.a.e.<init>(SourceFile:63) | |
at com.google.android.gms.plus.audience.a.e.<init>(SourceFile:53) | |
at com.google.android.gms.plus.audience.a.d.<init>(SourceFile:28) | |
at com.google.android.gms.plus.sharebox.al.a(SourceFile:213) | |
at android.support.v4.app.ax.c(SourceFile:490) | |
at android.support.v4.app.ax.d(SourceFile:499) | |
at android.support.v4.app.ax.b(SourceFile:646) | |
at com.google.android.gms.plus.sharebox.al.a(SourceFile:192) | |
at com.google.android.gms.plus.sharebox.ShareBoxActivity.a(SourceFile:525) | |
at com.google.android.gms.plus.sharebox.au.a(SourceFile:810) | |
at com.google.android.gms.plus.internal.ce.a(SourceFile:214) | |
at com.google.android.gms.common.internal.v.d(SourceFile:200) | |
at com.google.android.gms.common.internal.u.handleMessage(SourceFile:136) | |
at android.os.Handler.dispatchMessage(Handler.java:102) | |
at android.os.Looper.loop(Looper.java:135) | |
at android.app.ActivityThread.main(ActivityThread.java:5221) | |
at java.lang.reflect.Method.invoke(Native Method) | |
at java.lang.reflect.Method.invoke(Method.java:372) | |
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899) | |
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694) | |
Code (https://developers.google.com/+/mobile/android/share/): | |
Intent shareIntent = new PlusShare.Builder(this) | |
.setType("text/plain") //when sharing different mime, seems to work | |
.setText("Welcome to the Google+ platform.") | |
.setContentUrl(Uri.parse("https://developers.google.com/+/")) | |
.getIntent(); | |
startActivityForResult(shareIntent, 0); | |
Google Play Services APK: v6.5.87 | |
Google Play Services Library: v5.0.89 | |
Google Plus Version: v4.7.1.79583515 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Stack overflow: http://stackoverflow.com/questions/27235268/android-google-share-status-fails
Google issue: https://code.google.com/p/google-plus-platform/issues/detail?id=1047