We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sdk版本:
` //友盟统计及分享 START
implementation 'com.umeng.umsdk:common:9.3.8' // 友盟:必选
implementation 'com.umeng.umsdk:asms:1.2.2' // 友盟:必选
implementation 'com.umeng.umsdk:share-core:7.1.4' //友盟分享:核心库,必选
implementation 'com.umeng.umsdk:share-board:7.1.4' //友盟分享:面板功能,可选
implementation 'com.umeng.umsdk:share-qq:7.1.4'
implementation 'com.umeng.umsdk:share-wx:7.1.4'
implementation 'com.umeng.umsdk:share-sina:7.1.4'
implementation 'com.tencent.tauth:qqopensdk:3.51.2' //QQ官方SDK依赖库
implementation 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:6.6.5' //微信官方SDK依赖库
implementation 'com.sina.weibo.sdk:core:10.10.0:openDefaultRelease@aar' //新浪微博官方SDK依赖库
`
分享代码: ` UMImage image = null; if(options.hasKey("imageUrl")){ //网络图片 image = new UMImage(getCurrentActivity(),options.getString("imageUrl")); }else if(options.hasKey("imageUri")){ //本地图片 String uri = options.getString("imageUri"); uri = uri.replaceAll("file://",""); image = new UMImage(getCurrentActivity(),new File(uri)); } if(image == null ){ return; }
if (options.hasKey("title")) { image.setTitle(options.getString("title")); }
ShareAction action = new ShareAction(getCurrentActivity()).setDisplayList(displayList).withText(options.getString("text")) .withMedia(image); action.open(); `
以上代码, 分享网络地址的图片都没有问题, 但是分享本地文件的话,则 微信/微博 都没问题, 但是QQ/QQ空间就会报错. QQ错误提示为: 文件不存在或者为空!
机型: OPPO Reno , Androd 10.
OPPO Reno , Androd 10.
跪谢 !!! 就等着这一个bug上线了~~~~
The text was updated successfully, but these errors were encountered:
怎么解决的?
Sorry, something went wrong.
No branches or pull requests
sdk版本:
`
//友盟统计及分享 START
implementation 'com.umeng.umsdk:common:9.3.8' // 友盟:必选
implementation 'com.umeng.umsdk:asms:1.2.2' // 友盟:必选
implementation 'com.umeng.umsdk:share-core:7.1.4' //友盟分享:核心库,必选
implementation 'com.umeng.umsdk:share-board:7.1.4' //友盟分享:面板功能,可选
implementation 'com.umeng.umsdk:share-qq:7.1.4'
implementation 'com.umeng.umsdk:share-wx:7.1.4'
implementation 'com.umeng.umsdk:share-sina:7.1.4'
implementation 'com.tencent.tauth:qqopensdk:3.51.2' //QQ官方SDK依赖库
implementation 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:6.6.5' //微信官方SDK依赖库
implementation 'com.sina.weibo.sdk:core:10.10.0:openDefaultRelease@aar' //新浪微博官方SDK依赖库
`
分享代码:
`
UMImage image = null;
if(options.hasKey("imageUrl")){ //网络图片
image = new UMImage(getCurrentActivity(),options.getString("imageUrl"));
}else if(options.hasKey("imageUri")){ //本地图片
String uri = options.getString("imageUri");
uri = uri.replaceAll("file://","");
image = new UMImage(getCurrentActivity(),new File(uri));
}
if(image == null ){
return;
}
if (options.hasKey("title")) {
image.setTitle(options.getString("title"));
}
ShareAction action = new ShareAction(getCurrentActivity()).setDisplayList(displayList).withText(options.getString("text"))
.withMedia(image);
action.open();
`
以上代码, 分享网络地址的图片都没有问题, 但是分享本地文件的话,则 微信/微博 都没问题, 但是QQ/QQ空间就会报错.
QQ错误提示为: 文件不存在或者为空!
机型:
OPPO Reno , Androd 10.
跪谢 !!! 就等着这一个bug上线了~~~~
The text was updated successfully, but these errors were encountered: