Error opening demo flutter_app on my phone

I am new in the Flutter word, just started reading book Flutter Apprentice and coding along.
Being stuck in Chapter 1 - 1.7 Trying it out - The template project.
I have tried to run demo fluter_app on my mobile phone (didn’t change anything in code) and application crash on startup when I try to open it on my phone.
As I said, I am new in this technology and I am not sure how to debug this problem, only trace I have is following error in Android Studio:

[ERROR:flutter/fml/platform/android/jni_util.cc(182)] java.lang.SecurityException: Permission Denial: broadcast from android asks to run as user -1 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL or android.permission.INTERACT_ACROSS_USERS
E/flutter (18820): at android.os.Parcel.readException(Parcel.java:1967)
E/flutter (18820): at android.os.Parcel.readException(Parcel.java:1913)
E/flutter (18820): at android.app.IActivityManager$Stub$Proxy.reportActivityFullyDrawn(IActivityManager.java:8587)
E/flutter (18820): at android.app.Activity.reportFullyDrawn(Activity.java:2015)
E/flutter (18820): at io.flutter.embedding.android.FlutterActivity.onFlutterUiDisplayed(FlutterActivity.java:1100)
E/flutter (18820): at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$1.onFlutterUiDisplayed(FlutterActivityAndFragmentDelegate.java:88)
E/flutter (18820): at io.flutter.embedding.android.FlutterView$2.onFlutterUiDisplayed(FlutterView.java:133)
E/flutter (18820): at io.flutter.embedding.engine.FlutterJNI.onFirstFrame(FlutterJNI.java:462)
E/flutter (18820): at android.os.MessageQueue.nativePollOnce(Native Method)
E/flutter (18820): at android.os.MessageQueue.next(MessageQueue.java:325)
E/flutter (18820): at android.os.Looper.loop(Looper.java:142)
E/flutter (18820): at android.app.ActivityThread.main(ActivityThread.java:6944)
E/flutter (18820): at java.lang.reflect.Method.invoke(Native Method)
E/flutter (18820): at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
E/flutter (18820): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
E/flutter (18820):
F/flutter (18820): [FATAL:flutter/shell/platform/android/platform_view_android_jni_impl.cc(1220)] Check failed: fml::jni::CheckException(env).
F/libc (18820): Fatal signal 6 (SIGABRT), code -6 in tid 18820 (ple.flutter_app)

I don’t know is this related to crash on my phone and how to solve it?

Solved by changing meta-data tag inside AndroidManifest.xml:

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

@stvu Glad you already solved.

Doc says that meta-tag shouldn’t be needed anymore Adding a splash screen to your mobile app | Flutter

So I wonder, are you running Flutter 2.5?

> flutter doctor

in terminal to find out.

I am running Flutter 2.5.2

I will re-test later, to check will it work without meta-data tag.

To summarize, by default following meta-data was defined (doesn’t work):

<meta-data
              android:name="io.flutter.embedding.android.NormalTheme"
              android:resource="@style/NormalTheme"
              />

I replaced it with following (work fine):

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

Without meta-data (to test):
???

Considering you are running code generated by the create command in this chapter, I wonder if this an issue with Flutter itself.
A quick look at the GitHub issues didn’t lead me anywhere so far.
Let us know if you find something new. We’d like to “fix” this in future releases of the book.

Yes, code generated by the create command…
Just tested without meta-data tag, it doesn’t work.
Also crashes.

Used mobile phone: Samsung Galaxy S7 (SM-G930F)

But when using meta-data tag, I am getting following warning message:
W/FlutterActivityAndFragmentDelegate(15046): A splash screen was provided to Flutter, but this is deprecated. See flutter.dev/go/android-splash-migration for migration steps.