I implemented a big request in my project using the following gradle file
compile ('com.google.apis:google-api-services-bigquery:v2-rev328-1.22.0'){ exclude module: 'httpclient' //by artifact name exclude group: 'org.apache.httpcomponents' //by group exclude group: 'org.apache.httpcomponents', module: 'httpclient' //by both name and group }
and in the proguard file I added the following
-dontwarn com.google.api.client.** -keepclassmembers class * { @com.google.api.client.util.Key <fields>; } -keepattributes Signature,RuntimeVisibleAnnotations,AnnotationDefault -dontwarn com.google.api.client.extensions.android.** -dontwarn com.google.api.client.googleapis.extensions.android.**
but I get the following error.
Exception = [java.lang.IllegalArgumentException] (Value "i" is not a reference value [proguard.evaluation.value.UnknownIntegerValue]) Warning:Exception while processing task java.io.IOException: java.lang.IllegalArgumentException: Value "i" is not a reference value [proguard.evaluation.value.UnknownIntegerValue] :app:transformClassesAndResourcesWithProguardForRelease FAILED Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'. > java.io.IOException: java.lang.IllegalArgumentException: Value "i" is not a reference value [proguard.evaluation.value.UnknownIntegerValue]
I took advantage of the available solutions, but none of them helped.
Any help would be greatly appreciated. Thanks in advance.
source share