Itiviti / simple-slack-api

(simple) Java Slack client library
470 stars 193 forks source link

java.lang.NoSuchMethodError: com.google.gson.JsonArray.add(Ljava/lang/String;) #253

Closed WatsOne closed 6 years ago

WatsOne commented 6 years ago
14:39:33,759 ERROR [com.ullink.slack.simpleslackapi.impl.SlackWebSocketSessionImpl] (Grizzly(2)) caught exception in dispatchImpl: java.lang.NoSuchMethodError: com.google.gson.JsonArray.add(Ljava/lang/String;)V
    at com.ullink.slack.simpleslackapi.impl.SlackJSONAttachmentFormatter.encodeAttachments(SlackJSONAttachmentFormatter.java:85)
JsonArray array = new JsonArray();
              for (String markdown : attachments[i].getMarkdown_in()) {
                    array.add(markdown); //<---- here expecting JsonElement, not String!
                }
WatsOne commented 6 years ago

Sorry, i just need update gson library.