2017-06-01 6 views
0
ProGuard, version 5.2.1 
    Note: the configuration specifies that none of the methods of class 'android.util.Log' have any side effects 
    : can't find referenced class com.squareup.okhttp.Response 
    Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.ResponseBody 
    Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.Response 
    Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.ResponseBody 
    Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkHttpClient 
    Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.Cache 
    Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.CacheControl 
    Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.CacheControl$Builder 
    Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.Request$Builder 
    Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.Response 
    Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.Cache 
    Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.CacheControl 
    Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.Request 
    Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.Call 
    Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.Response 
    Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.ResponseBody 
    Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkHttpClient 
    Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.CacheControl$Builder 
    Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.CacheControl 
    Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.Request$Builder 
    Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.Response 
    Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.ResponseBody 
    Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.Cache 
    Note: com.google.android.gms.internal.zzast: can't find dynamically referenced class android.os.SystemProperties 
    Note: com.squareup.picasso.Utils: can't find dynamically referenced class com.squareup.okhttp.OkHttpClient 
    Note: com.google.android.gms.dynamite.DynamiteModule accesses a declared field 'MODULE_ID' dynamically 
      Maybe this is program field 'com.google.android.gms.dynamite.descriptors.com.google.android.gms.flags.ModuleDescriptor { java.lang.String MODULE_ID; }' 
    Note: com.google.android.gms.dynamite.DynamiteModule accesses a declared field 'MODULE_VERSION' dynamically 
      Maybe this is program field 'com.google.android.gms.dynamite.descriptors.com.google.android.gms.flags.ModuleDescriptor { int MODULE_VERSION; }' 
    Note: com.google.android.gms.dynamite.DynamiteModule accesses a declared field 'sClassLoader' dynamically 
      Maybe this is program field 'com.google.android.gms.dynamite.DynamiteModule$DynamiteLoaderClassLoader { java.lang.ClassLoader sClassLoader; }' 
    Note: the configuration keeps the entry point 'com.google.android.gms.ads.identifier.AdvertisingIdClient { com.google.android.gms.internal.zzcn zza(android.content.Context,com.google.android.gms.common.zza); }', but not the descriptor class 'com.google.android.gms.common.zza' 
    Note: the configuration keeps the entry point 'com.google.android.gms.flags.impl.FlagProviderImpl { void init(com.google.android.gms.dynamic.zzd); }', but not the descriptor class 'com.google.android.gms.dynamic.zzd' 
    Note: the configuration keeps the entry point 'com.google.android.gms.measurement.AppMeasurement { void registerOnScreenChangeCallback(com.google.android.gms.measurement.AppMeasurement$zzd); }', but not the descriptor class 'com.google.android.gms.measurement.AppMeasurement$zzd' 
    Note: the configuration keeps the entry point 'com.google.android.gms.measurement.AppMeasurement { void unregisterOnScreenChangeCallback(com.google.android.gms.measurement.AppMeasurement$zzd); }', but not the descriptor class 'com.google.android.gms.measurement.AppMeasurement$zzd' 
    Note: the configuration keeps the entry point 'com.google.firebase.iid.FirebaseInstanceId { com.google.firebase.iid.FirebaseInstanceId getInstance(com.google.firebase.FirebaseApp); }', but not the descriptor class 'com.google.firebase.FirebaseApp' 
    Note: the configuration keeps the entry point 'com.sothree.slidinguppanel.SlidingUpPanelLayout { void setScrollableViewHelper(com.sothree.slidinguppanel.ScrollableViewHelper); }', but not the descriptor class 'com.sothree.slidinguppanel.ScrollableViewHelper' 
    Note: the configuration keeps the entry point 'com.sothree.slidinguppanel.SlidingUpPanelLayout { void setPanelState(com.sothree.slidinguppanel.SlidingUpPanelLayout$PanelState); }', but not the descriptor class 'com.sothree.slidinguppanel.SlidingUpPanelLayout$PanelState' 
    Note: the configuration keeps the entry point 'com.sothree.slidinguppanel.SlidingUpPanelLayout { void setPanelStateInternal(com.sothree.slidinguppanel.SlidingUpPanelLayout$PanelState); }', but not the descriptor class 'com.sothree.slidinguppanel.SlidingUpPanelLayout$PanelState' 
    Note: there were 2 references to unknown classes. 
      You should check your configuration for typos. 
      (http://proguard.sourceforge.net/manual/troubleshooting.html#unknownclass) 
    Note: there were 3 classes trying to access generic signatures using reflection. 
      You should consider keeping the signature attributes 
      (using '-keepattributes Signature'). 
      (http://proguard.sourceforge.net/manual/troubleshooting.html#attributes) 
    Note: there were 8 unkept descriptor classes in kept class members. 
      You should consider explicitly keeping the mentioned classes 
      (using '-keep'). 
      (http://proguard.sourceforge.net/manual/troubleshooting.html#descriptorclass) 
    Note: there were 2 unresolved dynamic references to classes or interfaces. 
      You should check if you need to specify additional program jars. 
      (http://proguard.sourceforge.net/manual/troubleshooting.html#dynamicalclass) 
    Note: there were 3 accesses to class members by means of introspection. 
      You should consider explicitly keeping the mentioned class members 
      (using '-keep' or '-keepclassmembers'). 
      (http://proguard.sourceforge.net/manual/troubleshooting.html#dynamicalclassmember) 
    Warning:there were 318 unresolved references to classes or interfaces. 
      You may need to add missing library jars or update their versions. 
      If your code works fine without the missing classes, you can suppress 
      the warnings with '-dontwarn' options. 
      (http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedclass) 
    Warning:Exception while processing task java.io.IOException: Please correct the above warnings first. 
    :app:transformClassesAndResourcesWithProguardForRelease FAILED 
    Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'. 
    > java.io.IOException: Please correct the above warnings first. 
    Information:BUILD FAILED 
    Information:Total time: 4.766 secs 
    Information:1 error 
    Information:200 warnings 
    Information:See complete output in console 


    My proguard-rules.pro file is: 
# Disable Android logging 
-dontskipnonpubliclibraryclasses 
-dontobfuscate 
-forceprocessing 
-optimizationpasses 5 
-dontwarn okio.** 
-dontwarn android.support.** 
-dontnote android.support.** 
-dontwarn org.apache.http.** 
-dontwarn org.apache.lang.** 
-dontwarn android.net.http.AndroidHttpClient 
-dontwarn com.google.android.gms.** 
-dontwarn com.android.volley.toolbox.** 
-keepclassmembers class * implements android.os.Parcelable { 
    static ** CREATOR; 
} 
-keep class * extends android.app.Activity 

-assumenosideeffects class android.util.Log {*;} 

J'addded ce code pour supprimer les journaux de l'application à libération apk et obtenir cette erreur comme IOException et dans ce s'il vous plaît corriger ci-dessus premier avertissement. Je ne sais pas comment corriger ces avertissements. Je renvoie beaucoup de liens mais je n'arrive toujours pas à le résoudre.Proguard-rules.pro a échoué lors de la suppression des journaux dans Relese apk Android

Répondre

1

Vous pouvez écrire ceci dans le fichier proguard.pro.

-dontwarn com.squareup.** 
-dontnote com.squareup.** 
+0

encore il y a errors..plz aider à vous me.Thank pour answer..i prochain post qustion qui sont des erreurs plz trouvent .. –

+0

écrire même ligne pour supprimer tous les avertissements et la note dans le fichier progaurd.pro avec nom du paquet. comme ceci -dontwarn com.dropbox. ** – Rims

+0

Merci Rims..it travaille pour moi..il n'y a pas d'avertissements maintenant..mais le problème est toujours je peux voir les journaux dans la libération apk .. que puis-je faire pour supprimer tous les journaux dans la libération apk ?? pouvez-vous me suggérer une aide ?? –