# Error opening demo flutter\_app on my phone

**URL:** <https://forums.kodeco.com/t/error-opening-demo-flutter-app-on-my-phone/153088>\
**Category:** Flutter Apprentice\
**Created:** [October 14, 2021, 11:39am UTC](https://forums.kodeco.com/t/error-opening-demo-flutter-app-on-my-phone/153088 "2021-10-14T11:39:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![stvu](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/stvu/32/81494_2.png) [@stvu](https://forums.kodeco.com/u/stvu)\
**Post date:** [October 14, 2021, 11:39am UTC](https://forums.kodeco.com/t/error-opening-demo-flutter-app-on-my-phone/153088/1 "2021-10-14T11:39:13Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![stvu](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/stvu/32/81494_2.png) [@stvu](https://forums.kodeco.com/u/stvu)\
**Post date:** [October 14, 2021, 11:59am UTC](https://forums.kodeco.com/t/error-opening-demo-flutter-app-on-my-phone/153088/2 "2021-10-14T11:59:05Z")

</div>

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

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

```

---

<div class="post-metadata">

**Author:** ![funkyboy](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/funkyboy/32/109099_2.png) [@funkyboy](https://forums.kodeco.com/u/funkyboy)\
**Post date:** [October 14, 2021, 12:20pm UTC](https://forums.kodeco.com/t/error-opening-demo-flutter-app-on-my-phone/153088/3 "2021-10-14T12:20:06Z")

</div>

@stvu Glad you already solved.

Doc says that meta-tag _shouldn’t_ be needed anymore [Adding a splash screen to your mobile app | Flutter](https://flutter.dev/docs/development/ui/advanced/splash-screen#migrating-from-manifest--activity-defined-custom-splash-screens)

So I wonder, are you running Flutter 2.5?

`> flutter doctor`

in terminal to find out.

---

<div class="post-metadata">

**Author:** ![stvu](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/stvu/32/81494_2.png) [@stvu](https://forums.kodeco.com/u/stvu)\
**Post date:** [October 14, 2021, 2:32pm UTC](https://forums.kodeco.com/t/error-opening-demo-flutter-app-on-my-phone/153088/4 "2021-10-14T14:32:59Z")

</div>

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):

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

```

I replaced it with following (work fine):

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

```

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

---

<div class="post-metadata">

**Author:** ![funkyboy](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/funkyboy/32/109099_2.png) [@funkyboy](https://forums.kodeco.com/u/funkyboy)\
**Post date:** [October 14, 2021, 4:30pm UTC](https://forums.kodeco.com/t/error-opening-demo-flutter-app-on-my-phone/153088/5 "2021-10-14T16:30:00Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![stvu](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/stvu/32/81494_2.png) [@stvu](https://forums.kodeco.com/u/stvu)\
**Post date:** [October 15, 2021, 9:15am UTC](https://forums.kodeco.com/t/error-opening-demo-flutter-app-on-my-phone/153088/6 "2021-10-15T09:15:21Z")

</div>

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.
