3

Currently used version is: androidx.fragment:fragment-ktx:1.2.1. When I try to build release version, proguard (R8) show warnings like:

R8: The rule `-neverclassinline public class ** implements androidx.fragment.app.Fragment` uses implements but actually matches extends.

R8: The rule `-keep public class ** implements androidx.fragment.app.Fragment {
  public <init>();
}` uses implements but actually matches extends.

I didnt find any related issues on bug trackers. What maybe the reason, and how I can fix it?

Sever
  • 2,338
  • 5
  • 35
  • 55

1 Answers1

5

This is issue 148963981, which is already marked as fixed for the (upcoming, as of the time of writing this answer) Fragment 1.2.2 release.

ianhanniballake
  • 191,609
  • 30
  • 470
  • 443
  • Thanks for the answer! Fragment 1.2.2 has been released and it seems to solve the issue: https://developer.android.com/jetpack/androidx/releases/fragment#1.2.2 – Anigif Feb 21 '20 at 10:24