sharesdk,微信不能分享

来源:互联网 发布:aoi编程手册 编辑:程序博客网 时间:2024/04/30 09:53

之前测试的时候可以分享,之后微信审核通过了,就分享不了了。很是郁闷,耗了我2天,问sharesdk的客服,也没解决。但是客服还是比较给力的。最后终于解决了。

先打印logcat:

01-05 11:40:27.480: E/ActivityThread(26595): Activity cn.sharesdk.framework.ShareSDKUIShell has leaked ServiceConnection android.view.ViewRootGestureDispatcher$1@4191d558 that was originally bound here
01-05 11:40:27.480: E/ActivityThread(26595): android.app.ServiceConnectionLeaked: Activity cn.sharesdk.framework.ShareSDKUIShell has leaked ServiceConnection android.view.ViewRootGestureDispatcher$1@4191d558 that was originally bound here
01-05 11:40:27.480: E/ActivityThread(26595): at android.app.LoadedApk$ServiceDispatcher.<init>(LoadedApk.java:965)
01-05 11:40:27.480: E/ActivityThread(26595): at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:859)
01-05 11:40:27.480: E/ActivityThread(26595): at android.app.ContextImpl.bindService(ContextImpl.java:1260)
01-05 11:40:27.480: E/ActivityThread(26595): at android.app.ContextImpl.bindService(ContextImpl.java:1252)
01-05 11:40:27.480: E/ActivityThread(26595): at android.content.ContextWrapper.bindService(ContextWrapper.java:394)
01-05 11:40:27.480: E/ActivityThread(26595): at android.view.ViewRootGestureDispatcher.<init>(ViewRootGestureDispatcher.java:32)
01-05 11:40:27.480: E/ActivityThread(26595): at android.view.ViewRootImpl.<init>(ViewRootImpl.java:415)
01-05 11:40:27.480: E/ActivityThread(26595): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:292)
01-05 11:40:27.480: E/ActivityThread(26595): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:224)
01-05 11:40:27.480: E/ActivityThread(26595): at android.view.WindowManagerImpl$CompatModeWrapper.addView(WindowManagerImpl.java:149)
01-05 11:40:27.480: E/ActivityThread(26595): at android.view.Window$LocalWindowManager.addView(Window.java:547)
01-05 11:40:27.480: E/ActivityThread(26595): at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2646)
01-05 11:40:27.480: E/ActivityThread(26595): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2097)
01-05 11:40:27.480: E/ActivityThread(26595): at android.app.ActivityThread.access$600(ActivityThread.java:133)
01-05 11:40:27.480: E/ActivityThread(26595): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1203)
01-05 11:40:27.480: E/ActivityThread(26595): at android.os.Handler.dispatchMessage(Handler.java:99)
01-05 11:40:27.480: E/ActivityThread(26595): at android.os.Looper.loop(Looper.java:137)
01-05 11:40:27.480: E/ActivityThread(26595): at android.app.ActivityThread.main(ActivityThread.java:4794)
01-05 11:40:27.480: E/ActivityThread(26595): at java.lang.reflect.Method.invokeNative(Native Method)
01-05 11:40:27.480: E/ActivityThread(26595): at java.lang.reflect.Method.invoke(Method.java:511)
01-05 11:40:27.480: E/ActivityThread(26595): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
01-05 11:40:27.480: E/ActivityThread(26595): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556)
01-05 11:40:27.480: E/ActivityThread(26595): at dalvik.system.NativeStart.main(Native Method)
01-05 11:40:27.480: W/ActivityManager(507): Unbind failed: could not find connection for android.os.BinderProxy@41b310b0


logcat的提示丝毫没有啥作用,最后发现问题出现在微信后台的应用签名写的不对

应用签名:53:FC:...(这种格式是不对的)

应用签名:53fc...(正确格式)

坑爹啊!

0 0