5

के लिए मैं अपने प्रोजेक्ट में बड़ा क्वेरी को लागू किया है Gradle फ़ाइल निम्न का उपयोग करProguard विन्यास बिग क्वेरी

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 
} 

और ProGuard फ़ाइल में मैं

-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.** 

निम्नलिखित जोड़ा, लेकिन मैं निम्नलिखित त्रुटि हो रही है।

   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] 

मैं उपलब्ध समाधानों से गुजर चुका हूं लेकिन उनमें से कोई भी मदद नहीं करता है।

किसी भी मदद की बहुत सराहना की जाएगी। अग्रिम धन्यवाद। (ProGuard-project.txt)

उत्तर

9

ProGuard कॉन्फ़िग फ़ाइल में निम्न कोड जोड़ें

-optimizations !class/unboxing/enum 

यह Proguard में बग के रूप में चर्चा की here

+0

काश अगर मैं आप एक ऑस्कर लड़का मिल सकता है :) –

संबंधित मुद्दे