I'm using Volley in a library project that I've built into a AAR file.
I add the AAR file into the main project. When building the main project, I get the following error:
Failed to find byte code for com/android/volley/Response$Listener
I'm guessing it has something to do with the Proguard config, however I get the error even if I build a debug variant when creating the AAR.
This is my Proguard file for the library project:
# Volley
-dontwarn com.android.volley.**
-dontwarn com.android.volley.error.**
-keep class com.android.volley.** { *; }
-keep class com.android.volley.toolbox.** { *; }
-keep class com.android.volley.Response$* { *; }
-keep class com.android.volley.Request$* { *; }
-keep class com.android.volley.RequestQueue$* { *; }
-keep class com.android.volley.toolbox.HurlStack$* { *; }
-keep class com.android.volley.toolbox.ImageLoader$* { *; }
-keep interface com.android.volley.** { *; }
-keep class org.apache.commons.logging.*
Any tips on what might be causing this?
Update: I've tried this https://stackoverflow.com/a/27052696/1020311 regarding the consumerProguardFiles Proguard file, but I still get the same error when building the main project.
Thanks!
from Failed to find byte code for Volley when using it in an Android library AAR
No comments:
Post a Comment