Abhivansh Bhatnagar
Abhivansh Bhatnagar

Reputation: 13

Getting an error on splash screen in flutter

W/FlutterActivityAndFragmentDelegate(10040): A splash screen was provided to Flutter, 
but this is deprecated. See flutter.dev/go/android-splash-migration for migration steps.

I'm using Samsung M31s as my main debug device and I've been getting this error for a long time and the migration steps are too complex for me. I've used other devices and emulators also and did not face any issues so maybe this is an issue with Samsung devices. What changes should I do to get rid of this issue.

Upvotes: 1

Views: 1274

Answers (2)

plotsklapps
plotsklapps

Reputation: 354

Remove this line from your Manifest:

<meta-data
    android:name="io.flutter.embedding.android.SplashScreenDrawable"
    android:resource="@drawable/launch_background"
/>

This is deprecated and no longer used.

Upvotes: 3

Ke1212
Ke1212

Reputation: 129

i think this is the issue of API ,you must have seen the API version in emulators,may be using the physical device i.e. in case of your samsung phone,your mobile may have a deprecated version,kindly see this and confirm.

Upvotes: 0

Related Questions