Skip to content

Your app uses deprecated APIs or parameters for edge-to-edge (Android 15) #26788

@geertgeerits

Description

@geertgeerits

Description

After uploading an app (Android 15) to the Google Play Store I got this warning:

Your app uses deprecated APIs or parameters for edge-to-edge
One or more of the APIs you use or parameters that you set for edge-to-edge and window display have been deprecated in Android 15. Your app uses the following deprecated APIs or parameters:

android.view.Window.setDecorFitsSystemWindows
androidx.core.view.WindowCompat$Api30Impl.setDecorFitsSystemWindows
android.view.Window.setStatusBarColor
androidx.core.view.WindowCompat.setDecorFitsSystemWindows
android.view.Window.setNavigationBarColor
LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES
These start in the following places:

androidx.core.view.WindowCompat$Api30Impl.setDecorFitsSystemWindows
androidx.core.view.WindowCompat.setDecorFitsSystemWindows
com.google.android.material.bottomsheet.BottomSheetDialog.onCreate
com.google.android.material.internal.EdgeToEdgeUtils.applyEdgeToEdge
com.google.android.material.sidesheet.SheetDialog.onCreate
androidx.activity.EdgeToEdgeApi28.adjustLayoutInDisplayCutoutMode
To fix this, migrate away from these APIs or parameters.
android 35.0.7/9.0.100 - VS 17.12.35527.113

Steps to Reproduce

I create a release with:
dotnet publish -f:net9.0-android -c:Release /p:AndroidSigningKeyPass=xxxxx /p:AndroidSigningStorePass=xxxxxx

Upload the app to the Google Play Console.

Link to public reproduction project repository

No response

Version with bug

9.0.21 SR2.1

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

No response

Affected platforms

Android

Affected platform versions

Android 15

Did you find any workaround?

No

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions