You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When uploading my app to the Google Play Console, I encountered warnings regarding deprecated APIs for edge-to-edge display on Android 15. The console reports that my app uses the following deprecated APIs or parameters:
These deprecated calls originate from internal invocations within the Material Components library at:
androidx.core.view.WindowCompat$Api35Impl.a // this one not directly related to the material library
com.google.android.material.bottomsheet.BottomSheetDialog.onCreate
com.google.android.material.datepicker.MaterialDatePicker.X
com.google.android.material.sidesheet.SheetDialog.onCreate
It appears that these methods, now deprecated in Android 15, are still being used internally by the Material Components library, which in turn causes these warnings even though my own code does not explicitly invoke them.
Source code:
I'm sure that these code snippets are scattered throughout the codebase, but those were the items that caused Google Play to show warnings for my app. The one for the BottomSheedDialog can be seen here for example.
Android API version: Android API version here
Android 15
Material Library version:
v1.12.0
Device:
I have not seen this warning in Android Studio, only in the Google Play Console after uploading my app.
The text was updated successfully, but these errors were encountered:
It is pretty ironic that Google Play complains about stuff in Google own libraries despite updated to latest available. The maintainers of the library could at least mitigate the issue enwrapping calls that aren't supposed to work at all with Android 35+, with a conditional OS version check, so that Play static code analysis doesn't detect unsupported calls, that despite not used by app will be merged from this library.
Description:
When uploading my app to the Google Play Console, I encountered warnings regarding deprecated APIs for edge-to-edge display on Android 15. The console reports that my app uses the following deprecated APIs or parameters:
These deprecated calls originate from internal invocations within the Material Components library at:
It appears that these methods, now deprecated in Android 15, are still being used internally by the Material Components library, which in turn causes these warnings even though my own code does not explicitly invoke them.
Source code:
I'm sure that these code snippets are scattered throughout the codebase, but those were the items that caused Google Play to show warnings for my app. The one for the BottomSheedDialog can be seen here for example.
Android API version: Android API version here
Android 15
Material Library version:
v1.12.0
Device:
I have not seen this warning in Android Studio, only in the Google Play Console after uploading my app.
The text was updated successfully, but these errors were encountered: