You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
________________________________
发件人: xwcc ***@***.***>
发送时间: 2021年8月9日 9:56
收件人: umeng/MultiFunctionAndroidDemo ***@***.***>
抄送: leiyaqiang ***@***.***>; Comment ***@***.***>
主题: Re: [umeng/MultiFunctionAndroidDemo] 7.1.3版本 微信分享单图类型 无法唤起微信 其余的分享类型都可以(分享内容均为demo中的内容) 回调只能走到onStart (#91)
已经找到问题;
1. 检查 manifest 里面是否设置了 fileprovider
2. 检查app init 的时候是否设置了.fileprovider 后缀
我是从6.x 升至 9.x版本;
目前看来是之前sdk内部帮我们凭拼接了.fileprovider 后缀,后续的版本则没有帮我们拼接了;
// 加上后缀即可
final String fileProvider = application.getPackageName() + ".fileprovider";
UMConfigure.setLogEnabled(BuildConfig.DEBUG);
PlatformConfig.setWXFileProvider(fileProvider);
PlatformConfig.setQQFileProvider(fileProvider);
PlatformConfig.setSinaFileProvider(fileProvider);
―
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#91 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AGLZ2EWKUJMKHUKCN4RWC23T34YUTANCNFSM46JLA6DQ>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>.
------------------ 原始邮件 ------------------
发件人: xwcc ***@***.***>
发送时间: 2021年8月9日 09:45
收件人: umeng/MultiFunctionAndroidDemo ***@***.***>
抄送: jarvan11 ***@***.***>, Comment ***@***.***>
主题: 回复:[umeng/MultiFunctionAndroidDemo] 7.1.3版本 微信分享单图类型 无法唤起微信 其余的分享类型都可以(分享内容均为demo中的内容) 回调只能走到onStart (#91)
我也遇到了同样的问题;即使在设置了fileprovider的情况下。 version 7.1.5
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
Activity
leiyaqiang commentedon Jun 10, 2021
我也遇到了这个问题
ThreeAbs commentedon Jun 19, 2021
是androidx.core.content.FileProvider 这个的原因
fanjie19930414 commentedon Jul 7, 2021
我也遇到这个问题了 请教大佬能告知一下是怎么解决的吗? @ThreeAbs
leiyaqiang commentedon Jul 7, 2021
fanjie19930414 commentedon Jul 7, 2021
感谢大佬回复 我的代码和你一样 分享图片还是不会吊起微信 我看了友盟的日志 是报这个问题 但是不着调怎么解决。。。
错误类型:Attempt to invoke virtual method 'android.content.res.XmlResourceParser android.content.pm.ProviderInfo.loadXmlMetaData(android.content.pm.PackageManager, java.lang.String)' on a null object reference
jarvan11 commentedon Aug 2, 2021
设置了也不行
jarvan11 commentedon Aug 2, 2021
https://developer.umeng.com/docs/128606/detail/200753
xwdz commentedon Aug 9, 2021
我也遇到了同样的问题;即使在设置了fileprovider的情况下。 version 7.1.5
xwdz commentedon Aug 9, 2021
已经找到问题;
.fileprovider后缀我是从6.x 升至 9.x版本;
目前看来是之前sdk内部帮我们凭拼接了
.fileprovider后缀,后续的版本则没有帮我们拼接了;leiyaqiang commentedon Aug 16, 2021
jarvan11 commentedon Aug 16, 2021
pczhu commentedon Apr 27, 2022
哪位解决了?是必须要v4的包还是androidx的包也可以?我咋看不懂上面各位说啥呢 T T
pczhu commentedon Apr 27, 2022
搞明白了。就算用androidx的fileprovider 也要加implementation 'com.android.support:support-v4:30.0.0' 的依赖才行
liuzhenli commentedon Sep 30, 2022
是的,这里的坑点就是androidx项目需要引入supprot-v4包
liuzhenli commentedon Sep 30, 2022
我发现我们不用引用support-v4包,support-v4包下的FileProvider就是一个类,我们先创建同样的包名路径(android.support.v4.content),然后把代码copy一下就可以了