Skip to content
Advertisement

Proguard issue with Gson and Volley

Is there a way to skip proguard from obfuscating the Volley and Gson including the class using them ?

My build.gradle file:

JavaScript

Here the Proguard config:

JavaScript

Errors returned for Volley:

JavaScript

NB:

  • Application work well without proguard.

  • Signed APK generated with proguard but class using Volley + Gson still not working

Advertisement

Answer

You have to modify your proguard.

For gson use this Gson github config:

JavaScript

For volley use this:

JavaScript

Volley seems not working after ProGuard obfuscate

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement