微信分享不成功问题,不能拉起微信分享界面

android
标签: #<Tag:0x00007fb83cdd3cf8>

( 天天) #1
10-17 14:24:25.068 14411-14411/com.appcpi.yoco D/JIGUANG-JCore: [JCoreGlobal] action:init - sdkVersion:1.2.5, buildId:195
10-17 14:24:25.121 14411-14411/com.appcpi.yoco D/JIGUANG-JCore: [JCoreGlobal] manifest:channel - developer-default
10-17 14:24:25.139 14411-14411/com.appcpi.yoco D/JIGUANG-JCore: [JCoreGlobal] metadata: appKey - *************************
    [AndroidUtil] action:checkValidManifest
10-17 14:24:25.143 14411-14411/com.appcpi.yoco W/JIGUANG-JCore: [AndroidUtil] We recommend DataProvider's process same as PushService
10-17 14:24:25.146 14411-14411/com.appcpi.yoco D/JIGUANG-JCore: [JCoreServiceUtils] set Push/Alarm Receiver enabled
10-17 14:24:25.365 14411-14465/com.appcpi.yoco D/JIGUANG-JShare: [PlatformManager] parseConfig way :2
10-17 14:24:25.369 14411-14465/com.appcpi.yoco D/JIGUANG-JShare: [PlatformManager] platform QQ has configured
10-17 14:24:25.377 14411-14465/com.appcpi.yoco D/JIGUANG-JShare: [PlatformManager] platform Wechat has configured
10-17 14:24:25.427 14411-14411/com.appcpi.yoco D/JIGUANG-JPush: [JPushInterface] action:init - sdkVersion:3.1.6, buildId:416
    [AndroidUtil] action:checkValidManifest
10-17 14:24:25.475 14411-14465/com.appcpi.yoco D/JIGUANG-JShare: [PlatformManager] platform SinaWeibo has configured
10-17 14:24:25.965 14411-14411/com.appcpi.yoco D/JIGUANG-JCore: [PushReceiver] onReceive - cn.jpush.android.intent.ACTION_REPORT_HISTORY
10-17 14:24:25.968 14411-14434/com.appcpi.yoco D/JIGUANG-JPush: [PushReceiverCore] onReceive - cn.jpush.android.intent.ACTION_REPORT_HISTORY
10-17 14:24:53.520 14411-14411/com.appcpi.yoco D/JIGUANG-JShare: [InnerPlatActionListener] setActionListener:com.appcpi.yoco.activity.main.home.SharePopupWindow$2@e7009cd
10-17 14:24:53.522 14411-14411/com.appcpi.yoco D/JIGUANG-JShare: [AbsPlatform] will share:cn.jiguang.share.android.api.ShareParams@36f6d93
10-17 14:24:53.758 14411-14623/com.appcpi.yoco D/JIGUANG-JCore: [HttpHelper] status code:200 retry left:2
10-17 14:24:53.944 1664-13746/? W/WindowManager: Attempted to set focus to non-existing app token: Token{bd8bb2c ActivityRecord{45749f5 u0 cn.jiguang.share.demo/.wxapi.WXEntryActivity t1064}}
10-17 14:24:53.946 1664-13746/? D/ActivityTrigger: activityStartTrigger: Activity is Triggerred in full screen ApplicationInfo{5d8bf11 cn.jiguang.share.demo}
10-17 14:24:53.946 1664-13746/? E/ActivityTrigger: activityStartTrigger: not whiteListedcn.jiguang.share.demo/cn.jiguang.share.demo.wxapi.WXEntryActivity/160
10-17 14:24:53.948 1664-13746/? D/ActivityTrigger: activityResumeTrigger: The activity in ApplicationInfo{5d8bf11 cn.jiguang.share.demo} is now in focus and seems to be in full-screen mode
10-17 14:24:53.948 1664-13746/? E/ActivityTrigger: activityResumeTrigger: not whiteListedcn.jiguang.share.demo/cn.jiguang.share.demo.wxapi.WXEntryActivity/160
10-17 14:24:53.991 1664-13746/? D/ActivityTrigger: activityResumeTrigger: The activity in ApplicationInfo{5d8bf11 cn.jiguang.share.demo} is now in focus and seems to be in full-screen mode
10-17 14:24:53.991 1664-13746/? E/ActivityTrigger: activityResumeTrigger: not whiteListedcn.jiguang.share.demo/cn.jiguang.share.demo.wxapi.WXEntryActivity/160
10-17 14:24:54.102 2531-2547/? I/GuardService: notifyChange! preName = ComponentInfo{com.tencent.mm/com.tencent.mm.plugin.base.stub.WXEntryActivity}; curName = ComponentInfo{cn.jiguang.share.demo/cn.jiguang.share.demo.wxapi.WXEntryActivity}
10-17 14:24:54.115 14638-14638/cn.jiguang.share.demo W/zygote64: miui_dex2oat: OatFile: /data/app/cn.jiguang.share.demo-JPLyRkvH4qCV4k7kG1Qu5w==/oat/arm64/base.odex Compiler-Filter = speed-profile
10-17 14:24:54.158 14638-14638/cn.jiguang.share.demo D/JIGUANG-JCore: [JCoreGlobal] action:init - sdkVersion:1.2.3, buildId:193
10-17 14:24:54.236 14638-14638/cn.jiguang.share.demo D/JIGUANG-JCore: [JCoreGlobal] manifest:channel - developer-default
10-17 14:24:54.238 14638-14638/cn.jiguang.share.demo D/JIGUANG-JCore: [JCoreGlobal] metadata: appKey - df7a595dd0b3705c38a737f4
10-17 14:24:54.238 14638-14638/cn.jiguang.share.demo D/JIGUANG-JCore: [AndroidUtil] action:checkValidManifest
10-17 14:24:54.257 14638-14659/cn.jiguang.share.demo D/JIGUANG-JCore: [ARunAction]  pkg:cn.jiguang.share.demo
10-17 14:24:54.258 14638-14659/cn.jiguang.share.demo D/JIGUANG-JCore: [ARunAction] Bundle[{action=cn.jpush.android.intent.REPORT, report.extra.info=, report=crash_log, sdktype=JCORE}]
10-17 14:24:54.262 14638-14659/cn.jiguang.share.demo D/JIGUANG-JCore: [JiguangTcpManager] Action - restartNetworkingClient, pid:14638
10-17 14:24:54.267 14638-14664/cn.jiguang.share.demo I/JIGUANG-JCore: [NetworkingClient] Begin to run in ConnectingThread - id:583
10-17 14:24:54.316 14638-14664/cn.jiguang.share.demo D/JIGUANG-JCore: [SisPolicy] To get sis - host:124.202.138.11, port:19000 ,type:hardcode_domain
10-17 14:24:54.335 14638-14664/cn.jiguang.share.demo D/JIGUANG-JCore: [ConnectingHelper] SIS Receiving...
10-17 14:24:54.419 14638-14643/cn.jiguang.share.demo I/zygote64: Do partial code cache collection, code=30KB, data=18KB
10-17 14:24:54.420 14638-14643/cn.jiguang.share.demo I/zygote64: After code cache collection, code=30KB, data=18KB
    Increasing code cache capacity to 128KB
10-17 14:24:54.488 14638-14670/cn.jiguang.share.demo D/JIGUANG-JShare: [PlatformManager] parseConfig way :2
10-17 14:24:54.492 14638-14670/cn.jiguang.share.demo D/JIGUANG-JShare: [PlatformManager] platform QQ has configured
10-17 14:24:54.502 14638-14670/cn.jiguang.share.demo D/JIGUANG-JShare: [PlatformManager] platform Wechat has configured
10-17 14:24:54.514 14638-14670/cn.jiguang.share.demo D/JIGUANG-JShare: [PlatformManager] platform JChatPro has configured
10-17 14:24:54.517 14638-14638/cn.jiguang.share.demo D/AndroidRuntime: Shutting down VM
    
    
    --------- beginning of crash
10-17 14:24:54.521 14638-14638/cn.jiguang.share.demo E/AndroidRuntime: FATAL EXCEPTION: main
    Process: cn.jiguang.share.demo, PID: 14638
    java.lang.RuntimeException: Unable to start activity ComponentInfo{cn.jiguang.share.demo/cn.jiguang.share.demo.wxapi.WXEntryActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void cn.jiguang.share.android.api.AbsPlatform.notifyError(int, int, java.lang.String)' on a null object reference
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2816)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2894)
        at android.app.ActivityThread.-wrap11(Unknown Source:0)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1615)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:171)
        at android.app.ActivityThread.main(ActivityThread.java:6637)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:518)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:824)
     Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void cn.jiguang.share.android.api.AbsPlatform.notifyError(int, int, java.lang.String)' on a null object reference
        at cn.jiguang.share.wechat.b.a(Unknown Source:45)
        at cn.jiguang.share.wechat.b.a(Unknown Source:380)
        at cn.jiguang.share.wechat.WeChatHandleActivity.onCreate(Unknown Source:7)
        at cn.jiguang.share.demo.wxapi.WXEntryActivity.onCreate(WXEntryActivity.java:21)
        at android.app.Activity.performCreate(Activity.java:7094)
        at android.app.Activity.performCreate(Activity.java:7085)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1215)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2769)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2894) 
        at android.app.ActivityThread.-wrap11(Unknown Source:0) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1615) 
        at android.os.Handler.dispatchMessage(Handler.java:106) 
        at android.os.Looper.loop(Looper.java:171) 
        at android.app.ActivityThread.main(ActivityThread.java:6637) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:518) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:824) 
10-17 14:24:54.522 1664-2778/? W/WakePathChecker: MIUILOG-WAKEPATH: call was rejected by wakepath. userId= 0 caller= cn.jiguang.share.demo callee= com.sina.weibo classname=com.sina.weibo.provider.SinaWeiboSdkProvider action=null wakeType=4
10-17 14:24:54.523 14638-14670/cn.jiguang.share.demo E/ActivityThread: Failed to find provider info for com.sina.weibo.sdkProvider
10-17 14:24:54.539 14638-14678/cn.jiguang.share.demo I/zygote64: The ClassLoaderContext is a special shared library.
10-17 14:24:54.539 14638-14678/cn.jiguang.share.demo W/zygote64: miui_dex2oat: OatFile: /system/framework/oat/arm64/gson.odex Compiler-Filter = quicken
10-17 14:24:54.569 14638-14678/cn.jiguang.share.demo I/zygote64: The ClassLoaderContext is a special shared library.
10-17 14:24:54.569 14638-14678/cn.jiguang.share.demo W/zygote64: miui_dex2oat: OatFile: /system/framework/oat/arm64/volley.odex Compiler-Filter = quicken
10-17 14:24:54.597 14638-14678/cn.jiguang.share.demo W/zygote64: miui_dex2oat: OatFile: /data/dalvik-cache/arm64/system@app@MiuiContentCatcher@MiuiContentCatcher.apk@classes.dex Compiler-Filter = speed
10-17 14:24:54.593 14638-14638/cn.jiguang.share.demo W/Binder:intercep: type=1400 audit(0.0:1898): avc: denied { getattr } for path="/data/data/com.miui.contentcatcher" dev="dm-2" ino=309064 scontext=u:r:untrusted_app_25:s0:c512,c768 tcontext=u:object_r:system_app_data_file:s0 tclass=dir permissive=0
10-17 14:24:54.658 14638-14681/cn.jiguang.share.demo D/NetworkSecurityConfig: No Network Security Config specified, using platform default
10-17 14:24:54.660 14638-14681/cn.jiguang.share.demo W/zygote64: miui_dex2oat: oat file of /system/framework/tcmclient.jar is not exists
10-17 14:24:54.662 14638-14681/cn.jiguang.share.demo W/zygote64: miui_dex2oat: /system/framework/tcmclient.jar: Fall back to running out of the original dex file.
10-17 14:24:54.665 14638-14670/cn.jiguang.share.demo D/JIGUANG-JShare: [PlatformManager] platform SinaWeibo has configured
10-17 14:24:54.666 14638-14681/cn.jiguang.share.demo I/DpmTcmClient: RegisterTcmMonitor from: com.android.okhttp.TcmIdleTimerMonitor
10-17 14:24:54.669 1664-2778/? W/WakePathChecker: MIUILOG-WAKEPATH: call was rejected by wakepath. userId= 0 caller= cn.jiguang.share.demo callee= com.sina.weibo classname=com.sina.weibo.provider.SinaWeiboSdkProvider action=null wakeType=4
10-17 14:24:54.669 14638-14670/cn.jiguang.share.demo E/ActivityThread: Failed to find provider info for com.sina.weibo.sdkProvider
10-17 14:24:54.669 14638-14681/cn.jiguang.share.demo I/DpmTcmClient: RegisterTcmMonitor from: com.android.okhttp.TcmIdleTimerMonitor
10-17 14:24:54.681 14638-14670/cn.jiguang.share.demo D/JIGUANG-JShare: [PlatformManager] platform Twitter has configured
10-17 14:24:54.685 14638-14670/cn.jiguang.share.demo D/JIGUANG-JShare: [PlatformManager] platform Facebook has configured
10-17 14:24:54.882 14638-14681/cn.jiguang.share.demo D/JIGUANG-JCore: [HttpHelper] status code:200 retry left:2
10-17 14:24:54.887 2689-2949/? I/WtProcessController: Receive am_crash event for pid: 14638 pkg = cn.jiguang.share.demo
10-17 14:24:54.888 1664-13746/? W/ActivityManager:   Force finishing activity cn.jiguang.share.demo/.wxapi.WXEntryActivity
10-17 14:24:54.906 14638-14638/cn.jiguang.share.demo I/Process: Sending signal. PID: 14638 SIG: 9

#2

你集成的 JShare SDK版本多少?是否同时集成了微信官方 SDK 做登陆?

分享到微信的时候报了什么错误。


( 天天) #3

最新版本 JShare1.6.1 ;是同时有分享和登录;从应用启动 到 点击分享 就是以上日志。
还有我从另外一个帖子上看到,修改了微信开放平台配置的 签名,需要重置AppSecret 重新生成一个key,是这样的吗?我之前签名配置的有问题,修改过。


#4

极光 JSHare SDK 本身就包含了微信登陆功能,不需要你自己集成微信官方的登陆,之前分享与微信登陆有冲突所以我们就直接提供了登陆功能,建议直接使用我们的登陆功能


( 天天) #5

嗯呐,分享和登录我都是用的 极光的api,没有自己去其他平台集成


( 天天) #6

修改了微信开放平台配置的 签名,需要重置AppSecret 重新生成一个key,是这样的吗?


#7

可以参考他的解决方案

并看一下你在发起分享后报了什么错误。


( 天天) #8

以下是点击分享后的日志,不知道能不能看出问题。并且界面上会弹出如图对话框
image

10-17 16:02:25.155 22501-22501/com.appcpi.yoco D/JIGUANG-JShare: [InnerPlatActionListener] setActionListener:com.appcpi.yoco.activity.main.home.SharePopupWindow$2@d3a72ad
10-17 16:02:25.157 22501-22501/com.appcpi.yoco D/JIGUANG-JShare: [AbsPlatform] will share:cn.jiguang.share.android.api.ShareParams@54b3173
10-17 16:02:25.172 614-614/? D/SurfaceFlinger: duplicate layer name: changing com.appcpi.yoco/com.appcpi.yoco.activity.main.HomePageActivity to com.appcpi.yoco/com.appcpi.yoco.activity.main.HomePageActivity#1
10-17 16:02:25.220 569-712/? E/SDM: HWCDisplay::GetHWCLayer: [0] GetLayer(828) failed: no such layer
10-17 16:02:25.221 614-614/? W/HwcComposer: command 0x3000000 generated error 3
10-17 16:02:25.247 593-619/? E/ANDR-PERF-MPCTL: Invalid profile no. 0, total profiles 0 only
    
    --------- beginning of system
10-17 16:02:25.251 1664-7096/? W/WindowManager: Attempted to set focus to non-existing app token: Token{2ef2a1a ActivityRecord{8c5094b u0 com.tencent.mm/.plugin.base.stub.WXEntryActivity t1114}}
10-17 16:02:25.271 1664-7096/? D/ActivityTrigger: activityStartTrigger: Activity is Triggerred in full screen ApplicationInfo{fbbff28 com.tencent.mm}
10-17 16:02:25.271 1664-7096/? E/ActivityTrigger: activityStartTrigger: not whiteListedcom.tencent.mm/com.tencent.mm.plugin.base.stub.WXEntryActivity/1360
10-17 16:02:25.274 1664-7096/? D/CompatibilityInfo: mCompatibilityFlags - 10
10-17 16:02:25.275 1664-7096/? D/CompatibilityInfo: applicationDensity - 440
    applicationScale - 1.0
10-17 16:02:25.276 1664-7096/? D/ActivityTrigger: activityResumeTrigger: The activity in ApplicationInfo{fbbff28 com.tencent.mm} is now in focus and seems to be in full-screen mode
10-17 16:02:25.276 1664-7096/? E/ActivityTrigger: activityResumeTrigger: not whiteListedcom.tencent.mm/com.tencent.mm.plugin.base.stub.WXEntryActivity/1360
10-17 16:02:25.277 1664-7096/? D/ActivityTrigger: ActivityTrigger activityPauseTrigger 
10-17 16:02:25.284 1886-1886/? D/PhoneStatusBar: disable: 0x00000200 -> 0x00000000 (diff: 0x00000200)
    disable: < expand icons alerts ticker system_info back home recent clock full hide keyguard none float >
10-17 16:02:25.292 1886-1886/? D/PhoneStatusBar/NavigationBarView: setDisabledFlags back:false home:false recent:false
10-17 16:02:25.292 593-619/? E/ANDR-PERF-UTIL: Failed to read 
10-17 16:02:25.292 593-619/? I/chatty: uid=0(root) vendor.qti.hard identical 1 line
10-17 16:02:25.292 593-619/? E/ANDR-PERF-UTIL: Failed to read 
10-17 16:02:25.293 593-619/? E/ANDR-PERF-OPTSHANDLER: Failed to read /sys/class/kgsl/kgsl-3d0/force_no_nap
10-17 16:02:25.293 593-619/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [10, 7]
10-17 16:02:25.334 1664-1838/? D/ActivityTrigger: activityResumeTrigger: The activity in ApplicationInfo{fbbff28 com.tencent.mm} is now in focus and seems to be in full-screen mode
10-17 16:02:25.334 1664-1838/? E/ActivityTrigger: activityResumeTrigger: not whiteListedcom.tencent.mm/com.tencent.mm.plugin.base.stub.WXEntryActivity/1360
10-17 16:02:25.335 593-619/? E/ANDR-PERF-OPTSHANDLER: Failed to read /sys/class/kgsl/kgsl-3d0/force_no_nap
10-17 16:02:25.335 593-619/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [10, 7]
10-17 16:02:25.347 1664-1838/? D/CompatibilityInfo: mCompatibilityFlags - 10
    applicationDensity - 440
    applicationScale - 1.0
10-17 16:02:25.350 2452-2488/? I/octvm_power: power mode [class0] start 1539763345
10-17 16:02:25.350 2452-2488/? I/octvm_drv: common drv: get_current_battery_uAh will return 0
10-17 16:02:25.350 2452-2488/? I/octvm_power: Action: set_thermal_config(class0) for [foreground_change]
10-17 16:02:25.350 2452-2488/? I/octvm_drv: common drv: platform_set_thermal_mode -> platform not support
    common drv: get_current_battery_uAh will return 0
10-17 16:02:25.350 2452-2488/? I/octvm_power: onPowerModeChanged[class0] called
10-17 16:02:25.372 2531-2909/? I/GuardService: notifyChange! preName = ComponentInfo{com.appcpi.yoco/com.appcpi.yoco.activity.main.HomePageActivity}; curName = ComponentInfo{com.tencent.mm/com.tencent.mm.plugin.base.stub.WXEntryActivity}
10-17 16:02:25.490 614-614/? D/SurfaceFlinger: duplicate layer name: changing com.tencent.mm/com.tencent.mm.plugin.base.stub.WXEntryActivity to com.tencent.mm/com.tencent.mm.plugin.base.stub.WXEntryActivity#1
10-17 16:02:25.569 1886-1886/? V/PhoneStatusBarPolicy: updateManagedProfile mManagedProfileFocused: false mManagedProfileInQuietMode: false mKeyguardVisible: false mCurrentUserId:0 mCurrentProfileId:0 mSecondSpaceStatusIconVisible: true showIcon:false
10-17 16:02:25.586 1664-1729/? I/ActivityManager: Displayed com.tencent.mm/.plugin.base.stub.WXEntryActivity: +231ms
10-17 16:02:25.587 471-471/? W//system/bin/hwservicemanager: getTransport: Cannot find entry vendor.qti.hardware.iop@1.0::IIop/default in either framework or device manifest.
10-17 16:02:25.588 1664-1729/? E/ANDR-PERF-JNI: Iop tryGetService failed
10-17 16:02:25.590 1886-1886/? D/PhoneStatusBar: disable: 0x00000000 -> 0x00000200 (diff: 0x00000200)
    disable: < expand icons alerts ticker system_info back home recent clock full hide keyguard none float >
10-17 16:02:25.590 1886-1886/? D/PhoneStatusBar/NavigationBarView: setDisabledFlags back:false home:false recent:false
10-17 16:02:25.598 1664-1838/? I/WifiService: getConnectionInfo uid=10144
10-17 16:02:25.605 1664-1683/? I/WifiService: getConnectionInfo uid=10144
10-17 16:02:25.612 1664-1683/? I/chatty: uid=1000(system) Binder:1664_1 identical 3 lines
10-17 16:02:25.613 1664-1683/? I/WifiService: getConnectionInfo uid=10144
10-17 16:02:25.617 1886-1886/? D/PhoneStatusBar: disable: 0x00000200 -> 0x00000000 (diff: 0x00000200)
    disable: < expand icons alerts ticker system_info back home recent clock full hide keyguard none float >
10-17 16:02:25.617 1886-1886/? D/PhoneStatusBar/NavigationBarView: setDisabledFlags back:false home:false recent:false
10-17 16:02:25.646 1664-1838/? D/ActivityTrigger: activityStartTrigger: Activity is Triggerred in full screen ApplicationInfo{a06c535 com.miui.securitycenter}
10-17 16:02:25.646 1664-1838/? E/ActivityTrigger: activityStartTrigger: not whiteListedcom.miui.securitycenter/com.miui.wakepath.ui.ConfirmStartActivity/255
10-17 16:02:25.648 1664-1838/? D/CompatibilityInfo: mCompatibilityFlags - 10
    applicationDensity - 440
    applicationScale - 1.0
10-17 16:02:25.648 1664-1838/? D/ActivityTrigger: activityResumeTrigger: The activity in ApplicationInfo{a06c535 com.miui.securitycenter} is now in focus and seems to be in full-screen mode
10-17 16:02:25.648 1664-1838/? E/ActivityTrigger: activityResumeTrigger: not whiteListedcom.miui.securitycenter/com.miui.wakepath.ui.ConfirmStartActivity/255
10-17 16:02:25.649 1664-1838/? D/ActivityTrigger: ActivityTrigger activityPauseTrigger 
10-17 16:02:25.650 593-619/? E/ANDR-PERF-OPTSHANDLER: Failed to read /sys/class/kgsl/kgsl-3d0/force_no_nap
10-17 16:02:25.650 593-619/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [10, 7]
10-17 16:02:25.652 1886-1886/? D/PhoneStatusBar: disable: 0x00000000 -> 0x00000200 (diff: 0x00000200)
    disable: < expand icons alerts ticker system_info back home recent clock full hide keyguard none float >
10-17 16:02:25.668 1886-1886/? D/PhoneStatusBar/NavigationBarView: setDisabledFlags back:false home:false recent:false
10-17 16:02:25.689 1664-1683/? W/ActivityManager: Duplicate finish request for ActivityRecord{8c5094b u0 com.tencent.mm/.plugin.base.stub.WXEntryActivity t1114 f}
10-17 16:02:25.695 1664-7096/? D/ActivityTrigger: activityResumeTrigger: The activity in ApplicationInfo{a06c535 com.miui.securitycenter} is now in focus and seems to be in full-screen mode
10-17 16:02:25.695 1664-7096/? E/ActivityTrigger: activityResumeTrigger: not whiteListedcom.miui.securitycenter/com.miui.wakepath.ui.ConfirmStartActivity/255
10-17 16:02:25.696 593-619/? E/ANDR-PERF-OPTSHANDLER: Failed to read /sys/class/kgsl/kgsl-3d0/force_no_nap
10-17 16:02:25.696 593-619/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [10, 7]
10-17 16:02:25.704 1664-7096/? D/CompatibilityInfo: mCompatibilityFlags - 10
    applicationDensity - 440
    applicationScale - 1.0
10-17 16:02:25.705 2452-2488/? I/octvm_power: power mode [normal] start 1539763345
10-17 16:02:25.707 2452-2488/? I/octvm_drv: common drv: get_current_battery_uAh will return 0
10-17 16:02:25.707 2452-2488/? I/octvm_power: Action: set_lcd_mode(default) for [foreground_change]
10-17 16:02:25.707 2452-2488/? I/octvm_drv: common drv: platform_set_lcd_mode -> platform not support
10-17 16:02:25.707 2452-2488/? I/octvm_power: Action: set_thermal_config(restore) for [foreground_change]
10-17 16:02:25.707 2452-2488/? I/octvm_drv: common drv: platform_set_thermal_mode -> platform not support
    common drv: get_current_battery_uAh will return 0

( 天天) #9

@Lris 好像没有回复到你


#10

这个弹框是在你选择分享微信的时候出现的?你如果点允许,结果是什么?

你的手机机型和系统是什么?换一个手机测试呢?


( 天天) #11

是点击分享的时候出现的,如果点允许 就会出现发帖时带的日志,日志里面显示appkey 就成了 极光demo中的appkey,出现空指针:

Unable to start activity ComponentInfo{cn.jiguang.share.demo/cn.jiguang.share.demo.wxapi.WXEntryActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void cn.jiguang.share.android.api.AbsPlatform.notifyError(int, int, java.lang.String)' on a null object reference

提示的是极光demo中的类。如果删除手机上安装的极光demo app,点击分享日志就是弹框贴图下面的日志,没有看到明显的报错日志,信息非常少。


( 天天) #12

机型是红米6Pro,系统是 MIUI9.6 Android 8.1.0


#13

详述下你复现的步骤,根据已有信息是:
1、你手机上同时安装了你的 App 和极光 demo
2、你的 App 上点击分享到微信,会出现弹框说微信在尝试开启 JShare demo,产生的日志为第一帖中的。
3、删除极光 demo,你的 App 上点击分享到微信,不会出现弹框,产生的日志是第八帖中的?

如果你直接使用极光 demo 测试,结果是什么呢?

你极光 demo 配的 Appkey 和包名和你自己的 App 配的一样还是不一样。


( 天天) #14

是的,极光demo是可以正常分享的,Appkey 都已替换成我自己的,还有如果微信没有登录 可以跳转到微信登录页面,但是如果已登录 就会闪一下 “请稍后…”,qq、微博都可以正常分享


#15

你开启 debug ,重测一下手机上只安装了自己的 App 的情况下的分享,取一下完整的日志,从初始化开始。

第八帖中的日志没有带有 jiguang 的 tag 的日志。


( 天天) #16

为什么我在点击分享的时候 只能出现 这么点日志。
10-18 13:56:16.499 28194-28194/com.appcpi.yoco D/JIGUANG-JShare: [InnerPlatActionListener] setActionListener:com.appcpi.yoco.activity.main.home.SharePopupWindow$2@8c52e31
[AbsPlatform] will share:cn.jiguang.share.android.api.ShareParams@1deaa08
10-18 13:56:16.722 28194-28390/com.appcpi.yoco D/JIGUANG-JCore: [HttpHelper] status code:200 retry left:2

配置没问题:
image

image


#17

你怎么查看的日志,是否筛选了进程

手机开启 log 的权限
https://blog.csdn.net/QQiqq1314/article/details/70207673


(Geek Android) #18

大佬~我也遇到了~一模一样的问题~急死我了~

10-20 19:29:46.518 W/System.err( 9936): at java.io.FileInputStream.open0(Native Method)
10-20 19:29:46.518 W/System.err( 9936): at java.io.FileInputStream.open(FileInputStream.java:200)
10-20 19:29:46.518 W/System.err( 9936): at java.io.FileInputStream.(FileInputStream.java:150)
10-20 19:29:46.519 W/System.err( 9936): at cn.jiguang.share.android.utils.BitmapUtil.getBitmap(Unknown Source:10)
10-20 19:29:46.519 W/System.err( 9936): at cn.jiguang.share.android.utils.BitmapUtil.getBitmap(Unknown Source:13)
10-20 19:29:46.519 W/System.err( 9936): at cn.jiguang.share.android.utils.BitmapUtil.getBitmap(Unknown Source:1)
10-20 19:29:46.519 W/System.err( 9936): at cn.jiguang.share.wechat.a.a(Unknown Source:29)
10-20 19:29:46.519 W/System.err( 9936): at cn.jiguang.share.wechat.a.b(Unknown Source:3)
10-20 19:29:46.519 W/System.err( 9936): at cn.jiguang.share.wechat.b.a(Unknown Source:7)
10-20 19:29:46.519 W/System.err( 9936): at cn.jiguang.share.wechat.b.a(Unknown Source:281)
10-20 19:29:46.519 W/System.err( 9936): at cn.jiguang.share.wechat.b.shareInternal(Unknown Source:48)
10-20 19:29:46.520 W/System.err( 9936): at cn.jiguang.share.android.auth.AuthorizeHelper.doShare(Unknown Source:4)
10-20 19:29:46.520 W/System.err( 9936): at cn.jiguang.share.wechat.f.doShare(Unknown Source:11)
10-20 19:29:46.520 W/System.err( 9936): at cn.jiguang.share.android.api.a.run(Unknown Source:35)