Status Update
Comments
[Deleted User] <[Deleted User]> #2
My dependencies:
implementation 'androidx.appcompat:appcompat:1.4.0'
implementation 'androidx.preference:preference:1.1.1'
implementation 'com.google.android.gms:play-services-wearable:17.1.0'
implementation 'com.google.android.material:material:1.4.0'
If I remove androidx.appcompat:appcompat:1.4.0
, the warning vanishes, so I imagine there's some transitive dependency on an older version of androidx.appcompat:appcompat
that doesn't have the warning.
lp...@google.com <lp...@google.com> #4
The upstream library is using @SuppressWarnings("deprecation")
, which I suppose you could probably use to suppress the warning you're getting.
As for doing fully the non-deprecated way, it is possible that would require overwriting/duplicating more functionality than you currently are and/or updates to the Preference library.
However, I suspect that FragmentManager is capable of handling Fragment subclasses. You should probably look for instructions on developer.android.com, stackoverflow, or similar.
[Deleted User] <[Deleted User]> #5
Looks like a duplicate of
[Deleted User] <[Deleted User]> #6
FYI: The crash has been registered on a new device:
Samsung Galaxy S10e - Android 11
Description
We have this base fragment for settings:
And this is our simple xml settings layout:
On Crashlytics we have numerous crashes with this stacktrace:
Checking the
PreferenceFragmentCompat
internal, it always crashes at this line:Is there something we can do to fix this? It appears to be random and we don't own one of the affected devices to test locally.
A related SO link:https://stackoverflow.com/questions/60127269/binary-xml-file-line-18-error-inflating-class-androidx-recyclerview-widget-rec
Thank you.