How to fix these proguard warnings

后端 未结 3 2290
Happy的楠姐
Happy的楠姐 2021-02-20 12:59

I am using a third party library in my project, since then proguard is issuing me these warnings, which I can\'t relate to that library, Here is the library I am using: Lollipin

相关标签:
3条回答
  • 2021-02-20 13:56

    I had same issue,so I added below change into my proguard.cfg

    -dontwarn android.databinding.**
    -keep class android.databinding.** { *; }
    
    -dontwarn okio.**
    -dontwarn retrofit2.Platform$Java8
    -keepclasseswithmembers class * {
        @retrofit2.http.* <methods>;
    }
    
    0 讨论(0)
  • 2021-02-20 14:04

    It's because of Lollipin using Databinding library.

    Just add here to gradle:

    dataBinding {
            enabled = true
    }
    
    0 讨论(0)
  • 2021-02-20 14:05

    Try:

    -dontwarn com.github.orangegangsters.lollipin
    

    instead of

    -keeppackagenames com.github.orangegangsters.lollipin
    
    0 讨论(0)
提交回复
热议问题