QuickBlox / quickblox-android-sdk

QuickBlox Android SDK includes code snippets with main use cases and framework JAR library.
BSD 3-Clause "New" or "Revised" License
417 stars 697 forks source link

QBJsonErrorParser parse error #734

Closed FisnikIbishi closed 3 years ago

FisnikIbishi commented 3 years ago

I get com.quickblox.core.parser.QBJsonErrorParser.parseError (QBJsonErrorParser.java:79) o release build. On debug it works fine

hassanmhd commented 3 years ago

I get com.quickblox.core.parser.QBJsonErrorParser.parseError (QBJsonErrorParser.java:79) o release build. On debug it works fine

I was facing the same issue. It's because some of the classes were obfuscated by proguard. A quick solution is to exclude quickblox's classes by adding the following to the end of your proguard rules

-keep class com.quickblox.auth.parsers.** { *; }
-keep class com.quickblox.auth.model.** { *; }
-keep class com.quickblox.core.parser.** { *; }
-keep class com.quickblox.core.model.** { *; }
-keep class com.quickblox.core.server.** { *; }
-keep class com.quickblox.core.rest.** { *; }
-keep class com.quickblox.core.error.** { *; }
-keep class com.quickblox.core.Query { *; }

-keep class com.quickblox.users.parsers.** { *; }
-keep class com.quickblox.users.model.** { *; }

-keep class com.quickblox.chat.parser.** { *; }
-keep class com.quickblox.chat.model.** { *; }

-keep class com.quickblox.messages.parsers.** { *; }
-keep class com.quickblox.messages.model.** { *; }

-keep class com.quickblox.content.parsers.** { *; }
-keep class com.quickblox.content.model.** { *; }

-keep class org.jivesoftware.** { *; }
alexparvus1 commented 3 years ago

@FisnikIbishi yes, in case of similar problems you should look into your proguard rules in your project as @hassanmhd posted. Thanks @hassanmhd !

ghost commented 3 years ago

Hello @FisnikIbishi

This is Nikolay from QuickBlox support.

Please let me know if you had a chance to check the previous replies and resolve the issue.

If there is no reply within 5 business days, the issue will be closed as outdated.

FisnikIbishi commented 3 years ago

Fixed, thanks :)

ghost commented 3 years ago

@FisnikIbishi You are most welcome. Thank you for notifying me.

The issue is being closed.