0

I just updated proguard-rules.pro and noticed that ListView is not behaving normally, now ListView items are not appearing.

I added these two lines:

-keep class com.google.android.libraries.** { *; }
-keep class android.support.v7.** { *; }

I am facing this issue only with ListView, RecyclerView works just perfect.

-dontwarn okio.**
-dontwarn retrofit.**
-keep class retrofit.** { *; }
-keepclassmembers,allowobfuscation interface * {
    @retrofit.http.** <methods>;
}
-dontwarn com.squareup.okhttp.**
-keepattributes Signature,Annotation,EnclosingMethod,SourceFile,LineNumberTable
-keep class com.google.android.libraries.** { *; }
-keep class android.support.v7.** { *; }
Oreo
  • 2,586
  • 8
  • 38
  • 63

1 Answers1

0

add this to progaurd rules if your are using android.widget.ListView

-keep class android.support.v7.widget { *; }
John
  • 8,846
  • 8
  • 50
  • 85