java.lang.NoSuchMethodError: No virtual method initParser(Ljava/lang/reflect/Type;Ljava/lang/reflect/Type;Lcom/qb/gson/JsonDeserializer;)V in class Lcom/quickblox/core/parser/QBJsonParser; or its super classes (declaration of 'com.quickblox.core.parser.QBJsonParser' appears in /data/app/br.com.test.app-1/base.apk)

GitHub | pedrofsn | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    GitHub comment 284#245616595

    GitHub | 6 months ago | pedrofsn
    java.lang.NoSuchMethodError: No virtual method initParser(Ljava/lang/reflect/Type;Ljava/lang/reflect/Type;Lcom/qb/gson/JsonDeserializer;)V in class Lcom/quickblox/core/parser/QBJsonParser; or its super classes (declaration of 'com.quickblox.core.parser.QBJsonParser' appears in /data/app/br.com.test.app-1/base.apk)

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      No virtual method initParser(Ljava/lang/reflect/Type;Ljava/lang/reflect/Type;Lcom/qb/gson/JsonDeserializer;)V in class Lcom/quickblox/core/parser/QBJsonParser; or its super classes (declaration of 'com.quickblox.core.parser.QBJsonParser' appears in /data/app/br.com.test.app-1/base.apk)

      at com.quickblox.content.query.QueryBaseFile.<init>()
    2. com.quickblox.content
      QBContent.uploadFileTask
      1. com.quickblox.content.query.QueryBaseFile.<init>(QueryBaseFile.java:22)
      2. com.quickblox.content.query.QueryCreateFile.<init>(QueryCreateFile.java:18)
      3. com.quickblox.content.QBContent.createFile(QBContent.java:58)
      4. com.quickblox.content.task.TaskEntityUploadFile.performTask(TaskEntityUploadFile.java:57)
      5. com.quickblox.content.QBContent.uploadFileTask(QBContent.java:560)
      5 frames
    3. br.com.test
      ChatActivity.onImagePicked
      1. br.com.test.app.chat.utils.chat.ChatHelper.loadFileAsAttachment(ChatHelper.java:285)
      2. br.com.test.app.chat.ui.adapter.AttachmentPreviewAdapter.add(AttachmentPreviewAdapter.java:55)
      3. br.com.test.app.chat.ui.activity.ChatActivity.onImagePicked(ChatActivity.java:239)
      3 frames
    4. com.quickblox.sample
      BaseAsyncTask.onPostExecute
      1. com.quickblox.sample.core.utils.imagepick.GetFilepathFromUriTask.onResult(GetFilepathFromUriTask.java:80)
      2. com.quickblox.sample.core.utils.imagepick.GetFilepathFromUriTask.onResult(GetFilepathFromUriTask.java:22)
      3. com.quickblox.sample.core.async.BaseAsyncTask.onPostExecute(BaseAsyncTask.java:33)
      3 frames
    5. Android Platform
      AsyncTask.finish
      1. android.os.AsyncTask.finish(AsyncTask.java:651)
      1 frame