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?