错误码:2004 错误信息:分享内容不合法----该平台不支持纯文本分享【QQ平台】
S*市图规科技有限公司
发布于 4 年前
231来自广东省社会化分享 U-Share
SDK集成与升级
API调用
功能使用
其他
ShareAction shareAction = new ShareAction(context);
shareAction.withFile(file);
shareAction.withText(title);
shareAction.withSubject(title);
shareAction.setPlatform(target);
shareAction.share();
直接分享的txt文件,另外文件是存储在getExternalFilesDir 文件目录下。 不明白哪里不对,升级到了gradle中的版本号后出现的,分享的是文件,日志提示“平台不支持纯文本分析” 【分享到QQ平台】