You might be getting the below error with flutter 2.5, this

You might be getting the below error with flutter 2.5, thisW/FlutterActivityAndFragmentDelegate( 6849): A splash screen was provided to Flutter, but this is deprecated. See flutter.dev/go/android-splash-migration for migration steps.
Error connecting to the service protocol: failed to connect to http://127.0.0.1:53109/nDQhpX2nQOM=/
Exited (sigterm)

Solution

Android Flutter apps would either set io.flutter.embedding.android.SplashScreenDrawable in their application manifest, or implement provideSplashScreen within their Flutter Activity. This is deprecated from flutter 2.5 and no longer supported. The fix is to remove the below code snippped

Navigate to android => app => src => main => AndroidManifest.xml file

Remove the below code snippet:

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

you can find the information from below official link

https://flutter.dev/docs/development/ui/advanced/splash-screen#migrating-from-manifest–activity-defined-custom-splash-screens

Leave a Reply

Your email address will not be published. Required fields are marked *