Giter Site home page Giter Site logo

Comments (4)

lalaMiao avatar lalaMiao commented on July 27, 2024

PlatformException(error, Unsupported value: {"atext":"娃安徽啊啊","content_text":"[自定义消息]"}, null)

from jmessage-flutter-plugin.

lalaMiao avatar lalaMiao commented on July 27, 2024

类似上面,那种

from jmessage-flutter-plugin.

fcloud89 avatar fcloud89 commented on July 27, 2024

我也遇到了,jmessage_flutter: "^0.0.15"版本,
安卓工程实际引入的是
'cn.jiguang.sdk:jmessage:2.8.2'
'cn.jiguang.sdk:jcore:1.2.7'

发送自定义消息后,
W/JIGUANG-JMessage(27585): [CommonUtils] error occurred in users callback, msg = Unsupported value: {"extras":"{"name":"买了佛冷"}"}
W/System.err(27585): java.lang.IllegalArgumentException: Unsupported value: {"extras":"{"name":"买了佛冷"}"}
W/System.err(27585): at io.flutter.plugin.common.StandardMessageCodec.writeValue(StandardMessageCodec.java:289)
W/System.err(27585): at io.flutter.plugin.common.StandardMessageCodec.writeValue(StandardMessageCodec.java:286)
W/System.err(27585): at io.flutter.plugin.common.StandardMethodCodec.encodeSuccessEnvelope(StandardMethodCodec.java:57)
W/System.err(27585): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.success(MethodChannel.java:204)
W/System.err(27585): at com.jiguang.jmessageflutter.JMessageUtils.handleResult(JMessageUtils.java:51)
W/System.err(27585): at com.jiguang.jmessageflutter.JMessageUtils$1.gotResult(JMessageUtils.java:170)
W/System.err(27585): at cn.jpush.im.api.BasicCallback.gotResult(Unknown Source:0)
W/System.err(27585): at cn.jmessage.biz.k.b.c(Unknown Source:0)
W/System.err(27585): at cn.jmessage.biz.k.b.b(Unknown Source:0)
W/System.err(27585): at cn.jmessage.biz.k.b$2.call(Unknown Source:8)
W/System.err(27585): at cn.jmessage.a.a.e$2.run(Unknown Source:4)
W/System.err(27585): at android.os.Handler.handleCallback(Handler.java:873)
W/System.err(27585): at android.os.Handler.dispatchMessage(Handler.java:99)
W/System.err(27585): at android.os.Looper.loop(Looper.java:214)
W/System.err(27585): at android.app.ActivityThread.main(ActivityThread.java:6981)
W/System.err(27585): at java.lang.reflect.Method.invoke(Native Method)
W/System.err(27585): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
W/System.err(27585): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1445)

from jmessage-flutter-plugin.

fcloud89 avatar fcloud89 commented on July 27, 2024

@huangminlinux @fendouai @javenfang
上述问题定位于插件的安卓lib工程内的JsonUtils.java文件297行,
result.put("customObject", toJson(customObject));
其中 toJson(customObject)报错

from jmessage-flutter-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.