sharesdk,微信不能分享

前端之家收集整理的这篇文章主要介绍了sharesdk,微信不能分享前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

之前测试的时候可以分享,之后微信审核通过了,就分享不了了。很是郁闷,耗了我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...(正确格式)

坑爹啊!

猜你在找的Cocos2d-x相关文章