Comments (10)
from sharesdk-for-flutter.
安卓,ios不知道
from sharesdk-for-flutter.
from sharesdk-for-flutter.
分享类型直接改成QQ空间然后就报错了
from sharesdk-for-flutter.
同样,qq空间分享也报了个错,java.lang.NullPointerException: Attempt to invoke virtual method 'void cn.sharesdk.framework.Platform.setPlatformActionListener(cn.sharesdk.framework.PlatformActionListener)' on a null object reference
from sharesdk-for-flutter.
qq控件分享报错:
E/MethodChannel#com.yoozoo.mob/sharesdk: Failed to handle method call
java.lang.NullPointerException: Attempt to invoke virtual method 'void cn.sharesdk.framework.Platform.setPlatformActionListener(cn.sharesdk.framework.PlatformActionListener)' on a null object reference
at com.yoozoo.sharesdk.SharesdkPlugin.shareWithArgs(SharesdkPlugin.java:273)
at com.yoozoo.sharesdk.SharesdkPlugin.onMethodCall(SharesdkPlugin.java:63),
解决了希望说一声
from sharesdk-for-flutter.
QQ空间分享中, image url 包含中文时,有些包含中文的图片链接会无法生成缩图,有些又可以
from sharesdk-for-flutter.
QQ空间分享中,image url包含中文时,有些包含中文的图片链接会无法生成缩图,有些又可以
我们不对链接进行处理的,是直接传到QQ的接口的,如果可以的话您可以将链接发我下,我拿原生的测试下,看看是否可以,或者您自己下载到本地分享本地图片,就是多了一层的步骤比较麻烦些
from sharesdk-for-flutter.
我也遇到了。按照demo请求微信分享接口。
E/MethodChannel#com.yoozoo.mob/sharesdk(12932): Failed to handle method call E/MethodChannel#com.yoozoo.mob/sharesdk(12932): java.lang.NullPointerException: Attempt to invoke virtual method 'void cn.sharesdk.framework.Platform.setPlatformActionListener(cn.sharesdk.framework.PlatformActionListener)' on a null object reference E/MethodChannel#com.yoozoo.mob/sharesdk(12932): at com.yoozoo.sharesdk.SharesdkPlugin.shareWithArgs(SharesdkPlugin.java:385) E/MethodChannel#com.yoozoo.mob/sharesdk(12932): at com.yoozoo.sharesdk.SharesdkPlugin.onMethodCall(SharesdkPlugin.java:134) E/MethodChannel#com.yoozoo.mob/sharesdk(12932): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:222) E/MethodChannel#com.yoozoo.mob/sharesdk(12932): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:96) E/MethodChannel#com.yoozoo.mob/sharesdk(12932): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:656) E/MethodChannel#com.yoozoo.mob/sharesdk(12932): at android.os.MessageQueue.nativePollOnce(Native Method) E/MethodChannel#com.yoozoo.mob/sharesdk(12932): at android.os.MessageQueue.next(MessageQueue.java:323) E/MethodChannel#com.yoozoo.mob/sharesdk(12932): at android.os.Looper.loop(Looper.java:135) E/MethodChannel#com.yoozoo.mob/sharesdk(12932): at android.app.ActivityThread.main(ActivityThread.java:7224) E/MethodChannel#com.yoozoo.mob/sharesdk(12932): at java.lang.reflect.Method.invoke(Native Method) E/MethodChannel#com.yoozoo.mob/sharesdk(12932): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) E/MethodChannel#com.yoozoo.mob/sharesdk(12932): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
from sharesdk-for-flutter.
我把解决方案发一下,也是搜了一圈没有答案,最后联系的客服。
出现这个问题是因为 ‘build.gradle’ 中对应平台的配置信息没有加上
可能也是因为官方文档说的不清楚,我这边是 qq空间和微信朋友圈报错,本来以为Wechat和QQ就包含了朋友圈和qq空间。
下面只要把对应的配置加上就好了
它们分别对应的配置项是:WechatMoments、Qzone,里面的属性和Wechat、QQ保持一致即可。
如下:
MobSDK {
appKey "21111111111114"
appSecret "71111111111111111111111111b"
ShareSDK {
//平台配置信息
devInfo {
Wechat {
appId "wxe1111111111"
appSecret "e111111111111111111111111dabd"
}
WechatMoments {
appId "wxe1111111111"
appSecret "e111111111111111111111111dabd"
}
QQ {
appId "100000005"
appKey "e111111111111111111111111111111111e"
shareByAppClient true
}
Qzone {
appId "100000005"
appKey "e111111111111111111111111111111111e"
}
}
}
}
from sharesdk-for-flutter.
Related Issues (20)
- 每次启动,它都会调用粘贴板,然后就会弹出那个iOS权限的问题,感觉体验很差 HOT 1
- 苹果登录 code: 200100 HOT 2
- Android端 新浪微博分享本地图片报错 HOT 2
- 同问,sharesdk 最新版本1.2.9 HOT 1
- Flutter集成了mobpush就会导致mobshare认证出现错误( appkey is illegal ) HOT 2
- 关于Line分享的问题 HOT 4
- 微信Appsecret 不支持放在服务端?
- iOS can't pod install in version 1.2.9
- 迁移到null safety
- 官方有没有更新的打算呢,什么时候迁移null safety,新项目打算用mobtech的全家桶
- 最新代码安卓编译一直失败
- flutter example 能运行?
- The plugin sharesdk_plugin uses a deprecated version of the Android embedding. HOT 5
- 编译不通过 HOT 3
- Flutter中集成 MobTech 提示 appkey is illegal(MobTech 的 AppKey 不合法)的解决方案
- 集成后 iOS能运行 安卓一直报错 HOT 4
- 升级Android项目至gradle 7,编译失败 HOT 1
- java.lang.NullPointerException: Attempt to invoke virtual method 'boolean g.a.a.c.w()' on a null object reference
- Flutter 集成Google 点击登录无影响,status code 16
- sharesdk_plugin: ^1.3.6 与 url_launcher: ^6.1.7 冲突,导致 url_launcher_android 插件失效
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sharesdk-for-flutter.