Android R8 fragments implements but actually matches extends

Sever :

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?

ianhanniballake :

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.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=7158&siteId=1