Proguard no longer works with Retrofit

前端 未结 3 1483
萌比男神i
萌比男神i 2020-12-16 15:34

I have found older questions which touch on the same subject but with the latest versions none of the available answers work for me.

I am using Retrofit in my projec

3条回答
  •  爱一瞬间的悲伤
    2020-12-16 16:07

    Might seem trivial, but have you tried including this line? (If you don't use okhttp that is).

    -dontwarn com.squareup.okhttp.**
    

    Thing is Square doesn't use Proguard internally, so while their libraries may make some assumptions of what's being used, you can safely ignore it if your project doesn't use it. I had the same issue with Picasso and this fixed it for me.

提交回复
热议问题