Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android] Removing Deprecated Manifest Splash results in blank screen and prevents the app from starting #93668

Closed
danger-ahead opened this issue Nov 15, 2021 · 40 comments
Assignees
Labels
e: device-specific Only manifests on certain devices e: OS-version specific Affects only some versions of the relevant operating system e: samsung Issues only reproducible on Samsung devices P1 High-priority issues at the top of the work list platform-android Android applications specifically

Comments

@danger-ahead
Copy link

danger-ahead commented Nov 15, 2021

Description:

  • The bug can be seen on Android 11 only (Tested on Android 10, but works there).
    [Can be reproduced on Samsung OneUI 3.1 Core devices]
  • Flutter 2.5.3 is being used.

Steps to Reproduce

  1. Execute flutter create bug
  2. Remove the deprecated Manifest splash segment from Android Manifest:
<meta-data
    android:name="io.flutter.embedding.android.SplashScreenDrawable"
    android:resource="@drawable/launch_background"
/>
  1. Execute flutter run on the code sample

Expected results: The Flutter app should have started up normally.

Actual results: The app is stuck in a blank screen with the message I/ViewRootImpl@91023c2[MainActivity]( 2630): [DP] cancelDraw io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@a3ede7d isViewVisible: true repeating itself in the debug console.

Code sample

This is the main.dart:

import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        // This is the theme of your application.
        //
        // Try running your application with "flutter run". You'll see the
        // application has a blue toolbar. Then, without quitting the app, try
        // changing the primarySwatch below to Colors.green and then invoke
        // "hot reload" (press "r" in the console where you ran "flutter run",
        // or simply save your changes to "hot reload" in a Flutter IDE).
        // Notice that the counter didn't reset back to zero; the application
        // is not restarted.
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({Key? key, required this.title}) : super(key: key);

  // This widget is the home page of your application. It is stateful, meaning
  // that it has a State object (defined below) that contains fields that affect
  // how it looks.

  // This class is the configuration for the state. It holds the values (in this
  // case the title) provided by the parent (in this case the App widget) and
  // used by the build method of the State. Fields in a Widget subclass are
  // always marked "final".

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  int _counter = 0;

  void _incrementCounter() {
    setState(() {
      // This call to setState tells the Flutter framework that something has
      // changed in this State, which causes it to rerun the build method below
      // so that the display can reflect the updated values. If we changed
      // _counter without calling setState(), then the build method would not be
      // called again, and so nothing would appear to happen.
      _counter++;
    });
  }

  @override
  Widget build(BuildContext context) {
    // This method is rerun every time setState is called, for instance as done
    // by the _incrementCounter method above.
    //
    // The Flutter framework has been optimized to make rerunning build methods
    // fast, so that you can just rebuild anything that needs updating rather
    // than having to individually change instances of widgets.
    return Scaffold(
      appBar: AppBar(
        // Here we take the value from the MyHomePage object that was created by
        // the App.build method, and use it to set our appbar title.
        title: Text(widget.title),
      ),
      body: Center(
        // Center is a layout widget. It takes a single child and positions it
        // in the middle of the parent.
        child: Column(
          // Column is also a layout widget. It takes a list of children and
          // arranges them vertically. By default, it sizes itself to fit its
          // children horizontally, and tries to be as tall as its parent.
          //
          // Invoke "debug painting" (press "p" in the console, choose the
          // "Toggle Debug Paint" action from the Flutter Inspector in Android
          // Studio, or the "Toggle Debug Paint" command in Visual Studio Code)
          // to see the wireframe for each widget.
          //
          // Column has various properties to control how it sizes itself and
          // how it positions its children. Here we use mainAxisAlignment to
          // center the children vertically; the main axis here is the vertical
          // axis because Columns are vertical (the cross axis would be
          // horizontal).
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            const Text(
              'You have pushed the button this many times:',
            ),
            Text(
              '$_counter',
              style: Theme.of(context).textTheme.headline4,
            ),
          ],
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: _incrementCounter,
        tooltip: 'Increment',
        child: const Icon(Icons.add),
      ), // This trailing comma makes auto-formatting nicer for build methods.
    );
  }
}

This is the AndroidManifest.xml:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.bug">
   <application
        android:label="bug"
        android:icon="@mipmap/ic_launcher">
        <activity
            android:name=".MainActivity"
            android:launchMode="singleTop"
            android:theme="@style/LaunchTheme"
            android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
            android:hardwareAccelerated="true"
            android:windowSoftInputMode="adjustResize">
            <!-- Specifies an Android theme to apply to this Activity as soon as
                 the Android process has started. This theme is visible to the user
                 while the Flutter UI initializes. After that, this theme continues
                 to determine the Window background behind the Flutter UI. -->
            <meta-data
              android:name="io.flutter.embedding.android.NormalTheme"
              android:resource="@style/NormalTheme"
              />
            <!-- Displays an Android View that continues showing the launch screen
                 Drawable until Flutter paints its first frame, then this splash
                 screen fades out. A splash screen is useful to avoid any visual
                 gap between the end of Android's launch screen and the painting of
                 Flutter's first frame. -->
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>
        <!-- Don't delete the meta-data below.
             This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
        <meta-data
            android:name="flutterEmbedding"
            android:value="2" />
    </application>
</manifest>
Logs
[  +77 ms] executing: uname -m
[  +35 ms] Exit code 0 from: uname -m
[        ] x86_64
[   +6 ms] executing: [/home/danger-ahead/flutter/] git -c
log.showSignature=false log -n 1 --pretty=format:%H
[ +389 ms] Exit code 0 from: git -c log.showSignature=false log -n 1
--pretty=format:%H
[   +2 ms] 18116933e77adc82f80866c928266a5b4f1ed645
[        ] executing: [/home/danger-ahead/flutter/] git tag --points-at
18116933e77adc82f80866c928266a5b4f1ed645
[+1171 ms] Exit code 0 from: git tag --points-at
18116933e77adc82f80866c928266a5b4f1ed645
[   +5 ms] 2.5.3
[  +67 ms] executing: [/home/danger-ahead/flutter/] git rev-parse --abbrev-ref
--symbolic @{u}
[  +38 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [/home/danger-ahead/flutter/] git ls-remote --get-url
origin
[   +9 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[ +146 ms] executing: [/home/danger-ahead/flutter/] git rev-parse --abbrev-ref
HEAD
[   +6 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[ +111 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required,
skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required,
skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping
update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping
update.
[   +6 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required,
skipping update.
[        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required,
skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping
update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping
update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required,
skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required,
skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required,
skipping update.
[   +1 ms] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required,
skipping update.
[ +223 ms] executing: /home/danger-ahead/Android/Sdk/platform-tools/adb devices
-l
[  +52 ms] List of devices attached
           RZ8RA0RE99T            device usb:1-3 product:m21ins model:SM_M215G
           device:m21 transport_id:10
[   +6 ms] /home/danger-ahead/Android/Sdk/platform-tools/adb -s RZ8RA0RE99T
shell getprop
[ +382 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required,
skipping update.
[   +1 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping
update.
[  +21 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required,
skipping update.
[   +1 ms] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required,
skipping update.
[   +2 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping
update.
[   +1 ms] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping
update.
[   +1 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required,
skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required,
skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required,
skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required,
skipping update.
[ +169 ms] Skipping pub get: version match.
[  +48 ms] Found plugin flutter_plugin_android_lifecycle at
/home/danger-ahead/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_and
roid_lifecycle-2.0.4/
[  +27 ms] Found plugin local_auth at
/home/danger-ahead/flutter/.pub-cache/hosted/pub.dartlang.org/local_auth-1.1.8/
[   +8 ms] Found plugin path_provider at
/home/danger-ahead/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.
6/
[   +1 ms] Found plugin path_provider_linux at
/home/danger-ahead/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linu
x-2.0.0/
[   +1 ms] Found plugin path_provider_macos at
/home/danger-ahead/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_maco
s-2.0.2/
[   +3 ms] Found plugin path_provider_windows at
/home/danger-ahead/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_wind
ows-2.0.1/
[   +8 ms] Found plugin shared_preferences at
/home/danger-ahead/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences
-2.0.8/
[   +2 ms] Found plugin shared_preferences_linux at
/home/danger-ahead/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences
_linux-2.0.0/
[   +2 ms] Found plugin shared_preferences_macos at
/home/danger-ahead/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences
_macos-2.0.0/
[   +2 ms] Found plugin shared_preferences_web at
/home/danger-ahead/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences
_web-2.0.0/
[   +1 ms] Found plugin shared_preferences_windows at
/home/danger-ahead/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences
_windows-2.0.0/
[ +227 ms] Found plugin flutter_plugin_android_lifecycle at
/home/danger-ahead/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_and
roid_lifecycle-2.0.4/
[  +10 ms] Found plugin local_auth at
/home/danger-ahead/flutter/.pub-cache/hosted/pub.dartlang.org/local_auth-1.1.8/
[   +6 ms] Found plugin path_provider at
/home/danger-ahead/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.
6/
[   +1 ms] Found plugin path_provider_linux at
/home/danger-ahead/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linu
x-2.0.0/
[   +1 ms] Found plugin path_provider_macos at
/home/danger-ahead/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_maco
s-2.0.2/
[   +2 ms] Found plugin path_provider_windows at
/home/danger-ahead/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_wind
ows-2.0.1/
[   +4 ms] Found plugin shared_preferences at
/home/danger-ahead/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences
-2.0.8/
[   +3 ms] Found plugin shared_preferences_linux at
/home/danger-ahead/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences
_linux-2.0.0/
[   +1 ms] Found plugin shared_preferences_macos at
/home/danger-ahead/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences
_macos-2.0.0/
[   +3 ms] Found plugin shared_preferences_web at
/home/danger-ahead/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences
_web-2.0.0/
[   +1 ms] Found plugin shared_preferences_windows at
/home/danger-ahead/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences
_windows-2.0.0/
[  +69 ms] Generating
/home/danger-ahead/Documents/codes/flutter_notes_app/android/app/src/main/java/i
o/flutter/plugins/GeneratedPluginRegistrant.java
[ +109 ms] ro.hardware = exynos9611
[        ] ro.build.characteristics = phone
[  +47 ms] Initializing file store
[  +66 ms] Skipping target: gen_localizations
[   +8 ms] Skipping target: gen_dart_plugin_registrant
[   +1 ms] Skipping target: _composite
[   +3 ms] complete
[   +8 ms] Launching lib/main.dart on SM M215G in debug mode...
[   +7 ms] /home/danger-ahead/flutter/bin/cache/dart-sdk/bin/dart
--disable-dart-dev
/home/danger-ahead/flutter/bin/cache/artifacts/engine/linux-x64/frontend_server.
dart.snapshot --sdk-root
/home/danger-ahead/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk
/ --incremental --target=flutter --debugger-module-names
--experimental-emit-debug-metadata -DFLUTTER_WEB_AUTO_DETECT=true --output-dill
/tmp/flutter_tools.JSVVCU/flutter_tool.OYPJQG/app.dill --packages
/home/danger-ahead/Documents/codes/flutter_notes_app/.dart_tool/package_config.j
son -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts
--track-widget-creation --filesystem-scheme org-dartlang-root
--initialize-from-dill
build/c075001b96339384a97db4862b8ab8db.cache.dill.track.dill
--enable-experiment=alternative-invalidation-strategy
[  +12 ms] executing: /home/danger-ahead/Android/Sdk/build-tools/31.0.0/aapt
dump xmltree
/home/danger-ahead/Documents/codes/flutter_notes_app/build/app/outputs/flutter-a
pk/app.apk AndroidManifest.xml
[   +7 ms] Exit code 0 from:
/home/danger-ahead/Android/Sdk/build-tools/31.0.0/aapt dump xmltree
/home/danger-ahead/Documents/codes/flutter_notes_app/build/app/outputs/flutter-a
pk/app.apk AndroidManifest.xml
[        ] N: android=http://schemas.android.com/apk/res/android
             E: manifest (line=2)
               A: android:versionCode(0x0101021b)=(type 0x10)0x1
               A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
               A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1e
               A: android:compileSdkVersionCodename(0x01010573)="11" (Raw: "11")
               A: package="com.example.notes_app" (Raw: "com.example.notes_app")
               A: platformBuildVersionCode=(type 0x10)0x1e
               A: platformBuildVersionName=(type 0x10)0xb
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1e
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw:
                 "android.permission.INTERNET")
               E: uses-permission (line=15)
                 A:
                 android:name(0x01010003)="android.permission.USE_FINGERPRINT"
                 (Raw: "android.permission.USE_FINGERPRINT")
               E: uses-permission (line=16)
                 A: android:name(0x01010003)="android.permission.USE_BIOMETRIC"
                 (Raw: "android.permission.USE_BIOMETRIC")
               E: application (line=18)
                 A: android:label(0x01010001)="notes_app" (Raw: "notes_app")
                 A: android:icon(0x01010002)=@0x7f0d0000
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A:
                 android:appComponentFactory(0x0101057a)="androidx.core.app.Core
                 ComponentFactory" (Raw:
                 "androidx.core.app.CoreComponentFactory")
                 E: activity (line=23)
                   A: android:theme(0x01010000)=@0x7f0f00a2
                   A:
                   android:name(0x01010003)="com.example.notes_app.MainActivity"
                   (Raw: "com.example.notes_app.MainActivity")
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type
                   0x12)0xffffffff
                   E: meta-data (line=37)
                     A:
                     android:name(0x01010003)="io.flutter.embedding.android.Norm
                     alTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0f00a3
                   E: intent-filter (line=47)
                     E: action (line=48)
                       A: android:name(0x01010003)="android.intent.action.MAIN"
                       (Raw: "android.intent.action.MAIN")
                     E: category (line=50)
                       A:
                       android:name(0x01010003)="android.intent.category.LAUNCHE
                       R" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=57)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw:
                   "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[  +24 ms] executing: /home/danger-ahead/Android/Sdk/platform-tools/adb -s
RZ8RA0RE99T shell -x logcat -v time -t 1
[  +17 ms] <- compile package:notes_app/main.dart
[ +742 ms] --------- beginning of main
                    11-15 21:59:14.810 I/bauth_FPBAuthService( 4703):
                    FPBAuthService, 11607
[  +33 ms] executing: /home/danger-ahead/Android/Sdk/platform-tools/adb version
[  +22 ms] Android Debug Bridge version 1.0.41
           Version 31.0.3-7562133
           Installed as /home/danger-ahead/Android/Sdk/platform-tools/adb
[   +2 ms] executing: /home/danger-ahead/Android/Sdk/platform-tools/adb
start-server
[  +11 ms] Building APK
[  +20 ms] Running Gradle task 'assembleDebug'...
[   +4 ms] Using gradle from
/home/danger-ahead/Documents/codes/flutter_notes_app/android/gradlew.
[  +32 ms] executing: /home/danger-ahead/IDE/android-studio/jre/bin/java
-version
[ +172 ms] Exit code 0 from: /home/danger-ahead/IDE/android-studio/jre/bin/java
-version
[        ] openjdk version "11.0.10" 2021-01-19
           OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
           OpenJDK 64-Bit Server VM (build 11.0.10+0-b96-7249189, mixed mode)
[ +229 ms] executing: /home/danger-ahead/IDE/android-studio/jre/bin/java
-version
[ +161 ms] Exit code 0 from: /home/danger-ahead/IDE/android-studio/jre/bin/java
-version
[        ] openjdk version "11.0.10" 2021-01-19
           OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
           OpenJDK 64-Bit Server VM (build 11.0.10+0-b96-7249189, mixed mode)
[   +5 ms] executing:
[/home/danger-ahead/Documents/codes/flutter_notes_app/android/]
/home/danger-ahead/Documents/codes/flutter_notes_app/android/gradlew
-Pverbose=true -Ptarget-platform=android-arm64
-Ptarget=/home/danger-ahead/Documents/codes/flutter_notes_app/lib/main.dart
-Pdart-defines=RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ== -Pdart-obfuscation=false
-Ptrack-widget-creation=true -Ptree-shake-icons=false
-Pfilesystem-scheme=org-dartlang-root assembleDebug
[+4179 ms] > Task :app:compileFlutterBuildDebug UP-TO-DATE
[        ] > Task :app:packLibsflutterBuildDebug UP-TO-DATE
[        ] > Task :app:preBuild UP-TO-DATE
[   +2 ms] > Task :app:preDebugBuild UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:preBuild UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:preDebugBuild UP-TO-DATE
[   +1 ms] > Task :flutter_plugin_android_lifecycle:compileDebugAidl NO-SOURCE
[        ] > Task :local_auth:preBuild UP-TO-DATE
[        ] > Task :local_auth:preDebugBuild UP-TO-DATE
[        ] > Task :local_auth:compileDebugAidl NO-SOURCE
[        ] > Task :path_provider:preBuild UP-TO-DATE
[        ] > Task :path_provider:preDebugBuild UP-TO-DATE
[        ] > Task :path_provider:compileDebugAidl NO-SOURCE
[        ] > Task :shared_preferences:preBuild UP-TO-DATE
[        ] > Task :shared_preferences:preDebugBuild UP-TO-DATE
[        ] > Task :shared_preferences:compileDebugAidl NO-SOURCE
[        ] > Task :app:compileDebugAidl NO-SOURCE
[        ] > Task :flutter_plugin_android_lifecycle:packageDebugRenderscript
NO-SOURCE
[        ] > Task :local_auth:packageDebugRenderscript NO-SOURCE
[        ] > Task :path_provider:packageDebugRenderscript NO-SOURCE
[  +14 ms] > Task :shared_preferences:packageDebugRenderscript NO-SOURCE
[        ] > Task :app:compileDebugRenderscript NO-SOURCE
[        ] > Task :app:generateDebugBuildConfig UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:writeDebugAarMetadata
UP-TO-DATE
[        ] > Task :local_auth:writeDebugAarMetadata UP-TO-DATE
[        ] > Task :path_provider:writeDebugAarMetadata UP-TO-DATE
[        ] > Task :shared_preferences:writeDebugAarMetadata UP-TO-DATE
[        ] > Task :app:checkDebugAarMetadata UP-TO-DATE
[   +3 ms] > Task :app:cleanMergeDebugAssets
[        ] > Task :app:mergeDebugShaders UP-TO-DATE
[        ] > Task :app:compileDebugShaders NO-SOURCE
[        ] > Task :app:generateDebugAssets UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:mergeDebugShaders UP-TO-DATE
[   +5 ms] > Task :flutter_plugin_android_lifecycle:compileDebugShaders
NO-SOURCE
[        ] > Task :flutter_plugin_android_lifecycle:generateDebugAssets
UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:packageDebugAssets
UP-TO-DATE
[        ] > Task :local_auth:mergeDebugShaders UP-TO-DATE
[        ] > Task :local_auth:compileDebugShaders NO-SOURCE
[        ] > Task :local_auth:generateDebugAssets UP-TO-DATE
[        ] > Task :local_auth:packageDebugAssets UP-TO-DATE
[        ] > Task :path_provider:mergeDebugShaders UP-TO-DATE
[        ] > Task :path_provider:compileDebugShaders NO-SOURCE
[        ] > Task :path_provider:generateDebugAssets UP-TO-DATE
[        ] > Task :path_provider:packageDebugAssets UP-TO-DATE
[        ] > Task :shared_preferences:mergeDebugShaders UP-TO-DATE
[        ] > Task :shared_preferences:compileDebugShaders NO-SOURCE
[        ] > Task :shared_preferences:generateDebugAssets UP-TO-DATE
[        ] > Task :shared_preferences:packageDebugAssets UP-TO-DATE
[        ] > Task :app:mergeDebugAssets
[+1066 ms] > Task :app:copyFlutterAssetsDebug
[        ] > Task :app:generateDebugResValues UP-TO-DATE
[        ] > Task :app:generateDebugResources UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:compileDebugRenderscript
NO-SOURCE
[        ] > Task :flutter_plugin_android_lifecycle:generateDebugResValues
UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:generateDebugResources
UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:packageDebugResources
UP-TO-DATE
[        ] > Task :local_auth:compileDebugRenderscript NO-SOURCE
[        ] > Task :local_auth:generateDebugResValues UP-TO-DATE
[        ] > Task :local_auth:generateDebugResources UP-TO-DATE
[        ] > Task :local_auth:packageDebugResources UP-TO-DATE
[        ] > Task :path_provider:compileDebugRenderscript NO-SOURCE
[        ] > Task :path_provider:generateDebugResValues UP-TO-DATE
[        ] > Task :path_provider:generateDebugResources UP-TO-DATE
[        ] > Task :path_provider:packageDebugResources UP-TO-DATE
[        ] > Task :shared_preferences:compileDebugRenderscript NO-SOURCE
[        ] > Task :shared_preferences:generateDebugResValues UP-TO-DATE
[        ] > Task :shared_preferences:generateDebugResources UP-TO-DATE
[   +1 ms] > Task :shared_preferences:packageDebugResources UP-TO-DATE
[        ] > Task :app:mergeDebugResources UP-TO-DATE
[        ] > Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
[        ] > Task :app:extractDeepLinksDebug UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:extractDeepLinksDebug
UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:processDebugManifest
UP-TO-DATE
[        ] > Task :local_auth:extractDeepLinksDebug UP-TO-DATE
[        ] > Task :local_auth:processDebugManifest UP-TO-DATE
[        ] > Task :path_provider:extractDeepLinksDebug UP-TO-DATE
[        ] > Task :path_provider:processDebugManifest UP-TO-DATE
[   +8 ms] > Task :shared_preferences:extractDeepLinksDebug UP-TO-DATE
[  +83 ms] > Task :shared_preferences:processDebugManifest UP-TO-DATE
[   +3 ms] > Task :app:processDebugMainManifest UP-TO-DATE
[        ] > Task :app:processDebugManifest UP-TO-DATE
[        ] > Task :app:processDebugManifestForPackage UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:compileDebugLibraryResources
UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:parseDebugLocalResources
UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:generateDebugRFile
UP-TO-DATE
[        ] > Task :local_auth:compileDebugLibraryResources UP-TO-DATE
[        ] > Task :local_auth:parseDebugLocalResources UP-TO-DATE
[        ] > Task :local_auth:generateDebugRFile UP-TO-DATE
[        ] > Task :path_provider:compileDebugLibraryResources UP-TO-DATE
[        ] > Task :path_provider:parseDebugLocalResources UP-TO-DATE
[        ] > Task :path_provider:generateDebugRFile UP-TO-DATE
[        ] > Task :shared_preferences:compileDebugLibraryResources UP-TO-DATE
[        ] > Task :shared_preferences:parseDebugLocalResources UP-TO-DATE
[  +95 ms] > Task :shared_preferences:generateDebugRFile UP-TO-DATE
[        ] > Task :app:processDebugResources UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:generateDebugBuildConfig
UP-TO-DATE
[   +1 ms] > Task :flutter_plugin_android_lifecycle:javaPreCompileDebug
UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:compileDebugJavaWithJavac
UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:bundleLibCompileToJarDebug
UP-TO-DATE
[        ] > Task :local_auth:generateDebugBuildConfig UP-TO-DATE
[        ] > Task :local_auth:javaPreCompileDebug UP-TO-DATE
[        ] > Task :local_auth:compileDebugJavaWithJavac UP-TO-DATE
[        ] > Task :local_auth:bundleLibCompileToJarDebug UP-TO-DATE
[        ] > Task :path_provider:generateDebugBuildConfig UP-TO-DATE
[        ] > Task :path_provider:javaPreCompileDebug UP-TO-DATE
[   +1 ms] > Task :path_provider:compileDebugJavaWithJavac UP-TO-DATE
[   +1 ms] > Task :path_provider:bundleLibCompileToJarDebug UP-TO-DATE
[        ] > Task :shared_preferences:generateDebugBuildConfig UP-TO-DATE
[        ] > Task :shared_preferences:javaPreCompileDebug UP-TO-DATE
[        ] > Task :shared_preferences:compileDebugJavaWithJavac UP-TO-DATE
[        ] > Task :shared_preferences:bundleLibCompileToJarDebug UP-TO-DATE
[        ] > Task :app:compileDebugKotlin UP-TO-DATE
[        ] > Task :app:javaPreCompileDebug UP-TO-DATE
[        ] > Task :app:compileDebugJavaWithJavac UP-TO-DATE
[        ] > Task :app:compileDebugSources UP-TO-DATE
[        ] > Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
[        ] > Task :app:compressDebugAssets UP-TO-DATE
[  +93 ms] > Task :app:processDebugJavaRes NO-SOURCE
[        ] > Task :flutter_plugin_android_lifecycle:processDebugJavaRes
NO-SOURCE
[   +1 ms] > Task :flutter_plugin_android_lifecycle:bundleLibResDebug NO-SOURCE
[   +1 ms] > Task :local_auth:processDebugJavaRes NO-SOURCE
[        ] > Task :local_auth:bundleLibResDebug NO-SOURCE
[        ] > Task :path_provider:processDebugJavaRes NO-SOURCE
[        ] > Task :path_provider:bundleLibResDebug NO-SOURCE
[   +1 ms] > Task :shared_preferences:processDebugJavaRes NO-SOURCE
[        ] > Task :shared_preferences:bundleLibResDebug NO-SOURCE
[        ] > Task :app:mergeDebugJavaResource UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:bundleLibRuntimeToJarDebug
UP-TO-DATE
[        ] > Task :local_auth:bundleLibRuntimeToJarDebug UP-TO-DATE
[        ] > Task :shared_preferences:bundleLibRuntimeToJarDebug UP-TO-DATE
[        ] > Task :path_provider:bundleLibRuntimeToJarDebug UP-TO-DATE
[   +2 ms] > Task :app:checkDebugDuplicateClasses UP-TO-DATE
[        ] > Task :app:dexBuilderDebug UP-TO-DATE
[        ] > Task :app:desugarDebugFileDependencies UP-TO-DATE
[  +88 ms] > Task :app:mergeExtDexDebug UP-TO-DATE
[        ] > Task :app:mergeDexDebug UP-TO-DATE
[        ] > Task :app:mergeDebugJniLibFolders UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:mergeDebugJniLibFolders
UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:mergeDebugNativeLibs
NO-SOURCE
[        ] > Task :flutter_plugin_android_lifecycle:stripDebugDebugSymbols
NO-SOURCE
[        ] > Task :flutter_plugin_android_lifecycle:copyDebugJniLibsProjectOnly
UP-TO-DATE
[        ] > Task :local_auth:mergeDebugJniLibFolders UP-TO-DATE
[        ] > Task :local_auth:mergeDebugNativeLibs NO-SOURCE
[        ] > Task :local_auth:stripDebugDebugSymbols NO-SOURCE
[        ] > Task :local_auth:copyDebugJniLibsProjectOnly UP-TO-DATE
[        ] > Task :path_provider:mergeDebugJniLibFolders UP-TO-DATE
[        ] > Task :path_provider:mergeDebugNativeLibs NO-SOURCE
[        ] > Task :path_provider:stripDebugDebugSymbols NO-SOURCE
[        ] > Task :path_provider:copyDebugJniLibsProjectOnly UP-TO-DATE
[        ] > Task :shared_preferences:mergeDebugJniLibFolders UP-TO-DATE
[        ] > Task :shared_preferences:mergeDebugNativeLibs NO-SOURCE
[        ] > Task :shared_preferences:stripDebugDebugSymbols NO-SOURCE
[        ] > Task :shared_preferences:copyDebugJniLibsProjectOnly UP-TO-DATE
[        ] > Task :app:mergeDebugNativeLibs UP-TO-DATE
[        ] > Task :app:stripDebugDebugSymbols UP-TO-DATE
[        ] > Task :app:validateSigningDebug UP-TO-DATE
[        ] > Task :app:packageDebug UP-TO-DATE
[+2495 ms] > Task :app:assembleDebug
[   +2 ms] > Task
:flutter_plugin_android_lifecycle:copyDebugJniLibsProjectAndLocalJars UP-TO-DATE
[  +96 ms] > Task :flutter_plugin_android_lifecycle:extractDebugAnnotations
UP-TO-DATE
[        ] > Task
:flutter_plugin_android_lifecycle:mergeDebugGeneratedProguardFiles UP-TO-DATE
[        ] > Task
:flutter_plugin_android_lifecycle:mergeDebugConsumerProguardFiles UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:prepareLintJarForPublish
UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:mergeDebugJavaResource
UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:syncDebugLibJars UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:bundleDebugAar UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:mergeDebugResources
UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:compileDebugSources
UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:assembleDebug UP-TO-DATE
[        ] > Task :local_auth:copyDebugJniLibsProjectAndLocalJars UP-TO-DATE
[  +94 ms] > Task :local_auth:extractDebugAnnotations UP-TO-DATE
[        ] > Task :local_auth:mergeDebugGeneratedProguardFiles UP-TO-DATE
[        ] > Task :local_auth:mergeDebugConsumerProguardFiles UP-TO-DATE
[        ] > Task :local_auth:prepareLintJarForPublish UP-TO-DATE
[        ] > Task :local_auth:mergeDebugJavaResource UP-TO-DATE
[        ] > Task :local_auth:syncDebugLibJars UP-TO-DATE
[        ] > Task :local_auth:bundleDebugAar UP-TO-DATE
[        ] > Task :local_auth:mergeDebugResources UP-TO-DATE
[        ] > Task :local_auth:compileDebugSources UP-TO-DATE
[        ] > Task :local_auth:assembleDebug UP-TO-DATE
[        ] > Task :path_provider:copyDebugJniLibsProjectAndLocalJars UP-TO-DATE
[        ] > Task :path_provider:extractDebugAnnotations UP-TO-DATE
[        ] > Task :path_provider:mergeDebugGeneratedProguardFiles UP-TO-DATE
[        ] > Task :path_provider:mergeDebugConsumerProguardFiles UP-TO-DATE
[        ] > Task :path_provider:prepareLintJarForPublish UP-TO-DATE
[        ] > Task :path_provider:mergeDebugJavaResource UP-TO-DATE
[        ] > Task :path_provider:syncDebugLibJars UP-TO-DATE
[        ] > Task :path_provider:bundleDebugAar UP-TO-DATE
[        ] > Task :path_provider:mergeDebugResources UP-TO-DATE
[        ] > Task :path_provider:compileDebugSources UP-TO-DATE
[        ] > Task :path_provider:assembleDebug UP-TO-DATE
[        ] > Task :shared_preferences:copyDebugJniLibsProjectAndLocalJars
UP-TO-DATE
[        ] > Task :shared_preferences:extractDebugAnnotations UP-TO-DATE
[        ] > Task :shared_preferences:mergeDebugGeneratedProguardFiles
UP-TO-DATE
[        ] > Task :shared_preferences:mergeDebugConsumerProguardFiles UP-TO-DATE
[        ] > Task :shared_preferences:prepareLintJarForPublish UP-TO-DATE
[        ] > Task :shared_preferences:mergeDebugJavaResource UP-TO-DATE
[        ] > Task :shared_preferences:syncDebugLibJars UP-TO-DATE
[        ] > Task :shared_preferences:bundleDebugAar UP-TO-DATE
[        ] > Task :shared_preferences:mergeDebugResources UP-TO-DATE
[        ] > Task :shared_preferences:compileDebugSources UP-TO-DATE
[        ] > Task :shared_preferences:assembleDebug UP-TO-DATE
[  +95 ms] Deprecated Gradle features were used in this build, making it
incompatible with Gradle 7.0.
[        ] Use '--warning-mode all' to show the individual deprecation warnings.
[        ] See
https://docs.gradle.org/6.7/userguide/command_line_interface.html#sec:command_li
ne_warnings
[        ] BUILD SUCCESSFUL in 8s
[        ] 136 actionable tasks: 4 executed, 132 up-to-date
[ +460 ms] Running Gradle task 'assembleDebug'... (completed in 9.5s)
[+1961 ms] calculateSha: LocalDirectory:
'/home/danger-ahead/Documents/codes/flutter_notes_app/build/app/outputs/flutter-
apk'/app.apk
[+1039 ms] ✓  Built build/app/outputs/flutter-apk/app-debug.apk.
[   +6 ms] executing: /home/danger-ahead/Android/Sdk/build-tools/31.0.0/aapt
dump xmltree
/home/danger-ahead/Documents/codes/flutter_notes_app/build/app/outputs/flutter-a
pk/app.apk AndroidManifest.xml
[  +16 ms] Exit code 0 from:
/home/danger-ahead/Android/Sdk/build-tools/31.0.0/aapt dump xmltree
/home/danger-ahead/Documents/codes/flutter_notes_app/build/app/outputs/flutter-a
pk/app.apk AndroidManifest.xml
[        ] N: android=http://schemas.android.com/apk/res/android
             E: manifest (line=2)
               A: android:versionCode(0x0101021b)=(type 0x10)0x1
               A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
               A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1e
               A: android:compileSdkVersionCodename(0x01010573)="11" (Raw: "11")
               A: package="com.example.notes_app" (Raw: "com.example.notes_app")
               A: platformBuildVersionCode=(type 0x10)0x1e
               A: platformBuildVersionName=(type 0x10)0xb
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1e
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw:
                 "android.permission.INTERNET")
               E: uses-permission (line=15)
                 A:
                 android:name(0x01010003)="android.permission.USE_FINGERPRINT"
                 (Raw: "android.permission.USE_FINGERPRINT")
               E: uses-permission (line=16)
                 A: android:name(0x01010003)="android.permission.USE_BIOMETRIC"
                 (Raw: "android.permission.USE_BIOMETRIC")
               E: application (line=18)
                 A: android:label(0x01010001)="notes_app" (Raw: "notes_app")
                 A: android:icon(0x01010002)=@0x7f0d0000
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A:
                 android:appComponentFactory(0x0101057a)="androidx.core.app.Core
                 ComponentFactory" (Raw:
                 "androidx.core.app.CoreComponentFactory")
                 E: activity (line=23)
                   A: android:theme(0x01010000)=@0x7f0f00a2
                   A:
                   android:name(0x01010003)="com.example.notes_app.MainActivity"
                   (Raw: "com.example.notes_app.MainActivity")
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type
                   0x12)0xffffffff
                   E: meta-data (line=37)
                     A:
                     android:name(0x01010003)="io.flutter.embedding.android.Norm
                     alTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0f00a3
                   E: intent-filter (line=47)
                     E: action (line=48)
                       A: android:name(0x01010003)="android.intent.action.MAIN"
                       (Raw: "android.intent.action.MAIN")
                     E: category (line=50)
                       A:
                       android:name(0x01010003)="android.intent.category.LAUNCHE
                       R" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=57)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw:
                   "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[   +3 ms] Stopping app 'app.apk' on SM M215G.
[        ] executing: /home/danger-ahead/Android/Sdk/platform-tools/adb -s
RZ8RA0RE99T shell am force-stop com.example.notes_app
[ +176 ms] executing: /home/danger-ahead/Android/Sdk/platform-tools/adb -s
RZ8RA0RE99T shell pm list packages com.example.notes_app
[ +191 ms] package:com.example.notes_app
[   +5 ms] executing: /home/danger-ahead/Android/Sdk/platform-tools/adb -s
RZ8RA0RE99T shell cat /data/local/tmp/sky.com.example.notes_app.sha1
[ +102 ms] 01ab0322d57c656b6cb39db093c369ec7b65d420
[   +1 ms] Latest build already installed.
[        ] executing: /home/danger-ahead/Android/Sdk/platform-tools/adb -s
RZ8RA0RE99T shell -x logcat -v time -t 1
[ +759 ms] --------- beginning of main
                    11-15 21:59:28.822 I/bauth_FPBAuthService( 4703):
                    FPBAuthService, 11607
[  +46 ms] executing: /home/danger-ahead/Android/Sdk/platform-tools/adb -s
RZ8RA0RE99T shell am start -a android.intent.action.RUN -f 0x20000000 --ez
enable-background-compilation true --ez enable-dart-profiling true --ez
enable-checked-mode true --ez verify-entry-points true
com.example.notes_app/com.example.notes_app.MainActivity
[ +127 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000
cmp=com.example.notes_app/.MainActivity (has extras) }
[   +1 ms] Waiting for observatory port to be available...
[+1773 ms] Observatory URL on device: http://127.0.0.1:35637/ZVbY-nNq59A=/
[   +3 ms] executing: /home/danger-ahead/Android/Sdk/platform-tools/adb -s
RZ8RA0RE99T forward tcp:0 tcp:35637
[  +23 ms] 42179
[        ] Forwarded host port 42179 to device port 35637 for Observatory
[  +10 ms] Caching compiled dill
[ +428 ms] Connecting to service protocol: http://127.0.0.1:42179/ZVbY-nNq59A=/
[+1583 ms] Launching a Dart Developer Service (DDS) instance at
http://127.0.0.1:0, connecting to VM service at
http://127.0.0.1:42179/ZVbY-nNq59A=/.
[ +743 ms] DDS is listening at http://127.0.0.1:42511/NGpfJPj4FXQ=/.
[  +87 ms] Successfully connected to service protocol:
http://127.0.0.1:42179/ZVbY-nNq59A=/
[ +354 ms] DevFS: Creating new filesystem on the device (null)
[ +178 ms] DevFS: Created new filesystem on the device
(file:///data/user/0/com.example.notes_app/code_cache/flutter_notes_appSJKVKX/fl
utter_notes_app/)
[   +6 ms] Updating assets
[ +173 ms] Syncing files to device SM M215G...
[   +1 ms] <- reset
[        ] Compiling dart to kernel with 0 updated files
[   +3 ms] <- recompile package:notes_app/main.dart
6d3cd191-4274-4511-b30e-ee62ef77dbd0
[        ] <- 6d3cd191-4274-4511-b30e-ee62ef77dbd0
[ +788 ms] DevTools activation throttled until 2021-11-16 09:44:15.413723.
[ +575 ms] Updating files.
[        ] DevFS: Sync finished
[   +6 ms] Syncing files to device SM M215G... (completed in 1,371ms)
[   +1 ms] Synced 0.0MB.
[   +4 ms] <- accept
[ +118 ms] Connected to _flutterView/0x757903fc20.
[   +3 ms] Flutter run key commands.
[   +1 ms] r Hot reload. 🔥🔥🔥
[        ] R Hot restart.
[        ] h List all available interactive commands.
[        ] d Detach (terminate "flutter run" but leave application running).
[        ] c Clear the screen
[        ] q Quit (terminate the application on the device).
[        ] 💪 Running with sound null safety 💪
[        ] An Observatory debugger and profiler on SM M215G is available at:
           http://127.0.0.1:42511/NGpfJPj4FXQ=/
[ +389 ms] The Flutter DevTools debugger and profiler on SM M215G is available
at:

http://127.0.0.1:9101?uri=http://127.0.0.1:42511/NGpfJPj4FXQ=/
[+23062 ms] I/ViewRootImpl@91023c2[MainActivity]( 8479): [DP] cancelDraw
io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@a3ede7d
isViewVisible: false
[+3383 ms] I/SurfaceView( 8479): onWindowVisibilityChanged(4) false
io.flutter.embedding.android.FlutterSurfaceView{8d5c2be V.E...... ......I.
0,0-0,0} of ViewRootImpl@91023c2[MainActivity]
[  +20 ms] I/SurfaceControl( 8479): assignNativeObject: nativeObject = 0
Surface(name=null)/@0xbb6f227 / android.view.SurfaceControl.readFromParcel:1117
android.view.IWindowSession$Stub$Proxy.relayout:1810
android.view.ViewRootImpl.relayoutWindow:9005
android.view.ViewRootImpl.performTraversals:3360
android.view.ViewRootImpl.doTraversal:2618
android.view.ViewRootImpl$TraversalRunnable.run:9971
android.view.Choreographer$CallbackRecord.run:1010
android.view.Choreographer.doCallbacks:809
android.view.Choreographer.doFrame:744
android.view.Choreographer$FrameDisplayEventReceiver.run:995 
[   +2 ms] I/SurfaceControl( 8479): assignNativeObject: nativeObject = 0
Surface(name=null)/@0xbd72cd4 / android.view.SurfaceControl.readFromParcel:1117
android.view.IWindowSession$Stub$Proxy.relayout:1820
android.view.ViewRootImpl.relayoutWindow:9005
android.view.ViewRootImpl.performTraversals:3360
android.view.ViewRootImpl.doTraversal:2618
android.view.ViewRootImpl$TraversalRunnable.run:9971
android.view.Choreographer$CallbackRecord.run:1010
android.view.Choreographer.doCallbacks:809
android.view.Choreographer.doFrame:744
android.view.Choreographer$FrameDisplayEventReceiver.run:995 
[   +3 ms] I/ViewRootImpl@91023c2[MainActivity]( 8479): Relayout returned:
old=(0,0,1080,2340) new=(0,0,1080,2340) req=(0,0)4 dur=7 res=0x1 s={false 0}
ch=false fn=-1
[   +1 ms] I/ViewRootImpl@91023c2[MainActivity]( 8479): [DP] cancelDraw
io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@a3ede7d
isViewVisible: false
[        ] I/ViewRootImpl@91023c2[MainActivity]( 8479): stopped(false) old=true
[        ] I/ViewRootImpl@91023c2[MainActivity]( 8479): stopped(false) old=false
[   +1 ms] I/SurfaceView( 8479): onWindowVisibilityChanged(0) true
io.flutter.embedding.android.FlutterSurfaceView{8d5c2be V.E...... ......I.
0,0-0,0} of ViewRootImpl@91023c2[MainActivity]
[   +7 ms] I/SurfaceControl( 8479): assignNativeObject: nativeObject = 0
Surface(name=null)/@0xbd72cd4 / android.view.SurfaceControl.readFromParcel:1117
android.view.IWindowSession$Stub$Proxy.relayout:1820
android.view.ViewRootImpl.relayoutWindow:9005
android.view.ViewRootImpl.performTraversals:3360
android.view.ViewRootImpl.doTraversal:2618
android.view.ViewRootImpl$TraversalRunnable.run:9971
android.view.Choreographer$CallbackRecord.run:1010
android.view.Choreographer.doCallbacks:809
android.view.Choreographer.doFrame:744
android.view.Choreographer$FrameDisplayEventReceiver.run:995 
[   +1 ms] I/ViewRootImpl@91023c2[MainActivity]( 8479): Relayout returned:
old=(0,0,1080,2340) new=(0,0,1080,2340) req=(1080,2340)0 dur=9 res=0x7 s={true
504514793472} ch=true fn=-1
[        ] I/SurfaceView( 8479): windowStopped(false) true
io.flutter.embedding.android.FlutterSurfaceView{8d5c2be V.E...... ......I.
0,0-0,0} of ViewRootImpl@91023c2[MainActivity]
[   +7 ms] I/ViewRootImpl@91023c2[MainActivity]( 8479): [DP] dp(1) 1
android.view.ViewRootImpl.reportNextDraw:10957
android.view.ViewRootImpl.performTraversals:3845
android.view.ViewRootImpl.doTraversal:2618 
[        ] I/SurfaceView( 8479): surfaceCreated 1 #8
io.flutter.embedding.android.FlutterSurfaceView{8d5c2be V.E...... ......ID
0,0-1080,2214}
[  +16 ms] I/SurfaceView( 8479): surfaceChanged (1080,2214) 1 #8
io.flutter.embedding.android.FlutterSurfaceView{8d5c2be V.E...... ......ID
0,0-1080,2214}
[   +1 ms] I/ViewRootImpl@91023c2[MainActivity]( 8479): [DP] dp(2) 1
android.view.SurfaceView.updateSurface:1311
android.view.SurfaceView$1.onPreDraw:225
android.view.ViewTreeObserver.dispatchOnPreDraw:1124 
[   +1 ms] I/ViewRootImpl@91023c2[MainActivity]( 8479): [DP] pdf(1) 1
android.view.SurfaceView.notifyDrawFinished:577
android.view.SurfaceView.performDrawFinished:564
android.view.SurfaceView.lambda$TWz4D2u33ZlAmRtgKzbqqDue3iM:0 
[        ] I/ViewRootImpl@91023c2[MainActivity]( 8479): [DP] cancelDraw
io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@a3ede7d
isViewVisible: true
[   +8 ms] I/ViewRootImpl@91023c2[MainActivity]( 8479): [DP] cancelDraw
io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@a3ede7d
isViewVisible: true
[  +16 ms] I/ViewRootImpl@91023c2[MainActivity]( 8479): [DP] cancelDraw
io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@a3ede7d
isViewVisible: true
[  +19 ms] I/ViewRootImpl@91023c2[MainActivity]( 8479): [DP] cancelDraw
io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@a3ede7d
isViewVisible: true
[  +15 ms] I/ViewRootImpl@91023c2[MainActivity]( 8479): [DP] cancelDraw
io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@a3ede7d
isViewVisible: true
[  +21 ms] I/ViewRootImpl@91023c2[MainActivity]( 8479): [DP] cancelDraw
io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@a3ede7d
isViewVisible: true
[  +14 ms] I/ViewRootImpl@91023c2[MainActivity]( 8479): [DP] cancelDraw
io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@a3ede7d
isViewVisible: true
[  +13 ms] I/ViewRootImpl@91023c2[MainActivity]( 8479): [DP] cancelDraw
io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@a3ede7d
isViewVisible: true
[  +19 ms] I/ViewRootImpl@91023c2[MainActivity]( 8479): [DP] cancelDraw
io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@a3ede7d
isViewVisible: true
[  +15 ms] I/ViewRootImpl@91023c2[MainActivity]( 8479): [DP] cancelDraw
io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@a3ede7d
isViewVisible: true
[   +4 ms] I/ViewRootImpl@91023c2[MainActivity]( 8479): MSG_RESIZED_REPORT:
frame=(0,0,1080,2340) ci=(0,83,0,126) vi=(0,83,0,126) or=1
[  +27 ms] I/SurfaceControl( 8479): nativeRelease nativeObject s[507189599968]
[        ] I/SurfaceControl( 8479): nativeRelease nativeObject e[507189599968]
[        ] I/SurfaceControl( 8479): assignNativeObject: nativeObject = 0
Surface(name=null)/@0xbd72cd4 / android.view.SurfaceControl.readFromParcel:1117
android.view.IWindowSession$Stub$Proxy.relayout:1820
android.view.ViewRootImpl.relayoutWindow:9005
android.view.ViewRootImpl.performTraversals:3360
android.view.ViewRootImpl.doTraversal:2618
android.view.ViewRootImpl$TraversalRunnable.run:9971
android.view.Choreographer$CallbackRecord.run:1010
android.view.Choreographer.doCallbacks:809
android.view.Choreographer.doFrame:744
android.view.Choreographer$FrameDisplayEventReceiver.run:995 
[   +1 ms] I/SurfaceControl( 8479): nativeRelease nativeObject s[504646281376]
[        ] I/SurfaceControl( 8479): nativeRelease nativeObject e[504646281376]
[        ] I/SurfaceControl( 8479): nativeRelease nativeObject s[504646281280]
[        ] I/SurfaceControl( 8479): nativeRelease nativeObject e[504646281280]
[        ] I/ViewRootImpl@91023c2[MainActivity]( 8479): Relayout returned:
old=(0,0,1080,2340) new=(0,0,1080,2340) req=(1080,2340)0 dur=10 res=0x3 s={true
504514793472} ch=false fn=1
[        ] I/ViewRootImpl@91023c2[MainActivity]( 8479): [DP] cancelDraw
io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@a3ede7d
isViewVisible: true
[        ] W/libEGL  ( 8479): EGLNativeWindowType 0x75776cd010 disconnect failed
[   +1 ms] I/ViewRootImpl@91023c2[MainActivity]( 8479): [DP] cancelDraw
io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@a3ede7d
isViewVisible: true
[  +14 ms] I/ViewRootImpl@91023c2[MainActivity]( 8479): [DP] cancelDraw
io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@a3ede7d
isViewVisible: true
[  +14 ms] I/ViewRootImpl@91023c2[MainActivity]( 8479): [DP] cancelDraw
io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@a3ede7d
isViewVisible: true
[  +22 ms] I/ViewRootImpl@91023c2[MainActivity]( 8479): [DP] cancelDraw
io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@a3ede7d
isViewVisible: true
[  +18 ms] I/ViewRootImpl@91023c2[MainActivity]( 8479): [DP] cancelDraw
io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@a3ede7d
isViewVisible: true
Analyzing flutter_notes_app...                                          
No issues found! (ran in 7.8s)
[✓] Flutter (Channel stable, 2.5.3, on Zorin OS 16 5.11.0-38-generic, locale
    en_IN)
    • Flutter version 2.5.3 at /home/danger-ahead/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 18116933e7 (4 weeks ago), 2021-10-15 10:46:35 -0700
    • Engine revision d3ea636dc5
    • Dart version 2.14.4

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /home/danger-ahead/Android/Sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: /home/danger-ahead/IDE/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[✓] Android Studio (version 2020.3)
    • Android Studio at /home/danger-ahead/IDE/android-studio
    • Flutter plugin version 59.0.2
    • Dart plugin version 203.8292
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[✓] IntelliJ IDEA Ultimate Edition (version 2021.2)
    • IntelliJ at /home/danger-ahead/IDE/intellij
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.62.1)
    • VS Code at /usr/share/code
    • Flutter extension version 3.28.0

[✓] Connected device (2 available)
    • SM M215G (mobile) • RZ8RA0RE99T • android-arm64  • Android 11 (API 30)
    • Chrome (web)      • chrome      • web-javascript • Google Chrome
      95.0.4638.69

• No issues found!
@danger-ahead danger-ahead changed the title [Android] Removing Deprecated Manifest Splash results in blank screen and prevents the app from starting [Android] Removing Deprecated Manifest Splash, results in blank screen and prevents the app from starting Nov 15, 2021
@danagbemava-nc danagbemava-nc added the in triage Presently being triaged by the triage team label Nov 16, 2021
@danagbemava-nc
Copy link
Member

Hi @danger-ahead, thanks for filing the issue.
I attempted to reproduce, but it ran just fine for me.
I tested on a POCO X3 NFC running MIUI 12.5.3 based on android 11.

May I know what device(s) you experienced this issue with?

Thank you

@danagbemava-nc danagbemava-nc added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Nov 16, 2021
@danger-ahead
Copy link
Author

May I know what device(s) you experienced this issue with?

Hi, it's a Samsung Galaxy M21 2021 running OneUI 3.1 Core based on Android 11.

Also I found 2 more cases of users having this issue:

@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Nov 16, 2021
@danagbemava-nc
Copy link
Member

@danger-ahead, do you experience it on any other device apart from the Galaxy M21?

I tested on a OnePlus Nord as well as a Pixel 4a simulator, (both running android 11) and I was unable to reproduce the issue

@danagbemava-nc danagbemava-nc added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Nov 16, 2021
@danger-ahead
Copy link
Author

danger-ahead commented Nov 16, 2021

@danger-ahead, do you experience it on any other device apart from the Galaxy M21?

No @danagbemava-nc

I ran the tests again on the following devices:

  • Infinix Note 5 (Stock Android 10) --> No issue
  • POCO M3 (MIUI 12.0.9 on Android 10) --> No issue
  • Pixel 4a simulator (Android 11) --> No issue
  • Galaxy M21 2021 (OneUI 3.1 Core on Android 11) --> Same issue again

@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Nov 16, 2021
@danagbemava-nc
Copy link
Member

danagbemava-nc commented Nov 17, 2021

This issue could be affecting a small group of devices running android 11, although, there's a chance that it also affects devices running other versions of android, we just haven't found a device that reproduces at this point.

Devices/Emulators tested status
POCO X3 NFC (android 11)
OnePlus Nord (android 11)
Pixel 3a Emulator (android 10)
Pixel 4a Emulator (android 11)
Pixel 4a Emulator (android 12)
Nexus 7 Emulator (android 12)
Nexus 10 Emulator (android 12)

✅ : works just fine
❌ : issue reproduced

Labelling for further investigation as I'm unable to reproduce locally.

@danagbemava-nc danagbemava-nc added e: device-specific Only manifests on certain devices e: OS-version specific Affects only some versions of the relevant operating system passed first triage platform-android Android applications specifically and removed in triage Presently being triaged by the triage team labels Nov 17, 2021
@danagbemava-nc danagbemava-nc changed the title [Android] Removing Deprecated Manifest Splash, results in blank screen and prevents the app from starting [Android] Removing Deprecated Manifest Splash results in blank screen and prevents the app from starting Nov 17, 2021
@prxful
Copy link

prxful commented Nov 24, 2021

Same Issue on my Android M31s Android 11 UI3.1 Core.

@PaulRudin
Copy link

I'm seeing this on a Galaxy s10+ (android 11).

@andrefedev
Copy link

The same problem on Samsung Galaxy Tab A Android 11. Recently created an issue #95032

@grarich
Copy link

grarich commented Dec 16, 2021

I had the same bug on my Galaxy a20.

@ritzd
Copy link

ritzd commented Dec 18, 2021

Seeing this on a Galaxy M31

@ArthurVinbeau
Copy link

Similar issue on a Samsung Galaxy A51 (SM-A515F/DSN) running Android 11 & One UI 3.1

The console gets flooded by this message during initial app launch but the app works fine afterwards and the message flood stops.
(This works both in newly created app using flutter create as well as existing ones)

Flutter doctor
Flutter (Channel stable, 2.8.1, on Manjaro Linux 5.10.84-1-MANJARO, locale fr_FR.UTF-8)
    • Flutter version 2.8.1 at /home/xxx/snap/flutter/common/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 77d935af4d (8 days ago), 2021-12-16 08:37:33 -0800
    • Engine revision 890a5fca2e
    • Dart version 2.15.1

@ViniciusLuciano
Copy link

Same bug on my Galaxy M21s.

@chris-PearlIT
Copy link

I can confirm this same issue. I only ever emulate on real devices, currently using Galaxy S10 Ultra for phone size and a Galaxy A7 tab for large screen.
Issue has been happening on both since removing splash deprecation from manifest.
Somewhere in the region of 100 - 150
[DP] cancelDraw io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@4d4d4a0 isViewVisible: true.
Uploaded a completed, play store ready app to my Personal S20 Ultra 5G, app opens to a blank white screen and doesn't move from there.

@red282
Copy link

red282 commented Jan 13, 2022

Same issue here.
Galaxy S10e (SM-G970N) + Android 11 (One UI 3.1)

@Johann673
Copy link

Johann673 commented Jan 13, 2022

Same issue with Galaxy S20U (Android 12). Only in release mode, not in debug.
Any fix ?

@blasten blasten added the P1 High-priority issues at the top of the work list label Jan 14, 2022
@ViniciusLuciano
Copy link

@stepanzarubin which JSON?

@insidemordecai
Copy link

Tested on a physical device - Galaxy A50 running on One UI 3.0 based on Android 11

The same message as others 👇🏽is flooded to the console before the first screen is drawn but after it is drawn the "flooding" stops.

I/ViewRootImpl@d8f34b[MainActivity](16233): [DP] cancelDraw io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@3417927 isViewVisible: true

@Waruna-Kaushalya
Copy link

As you may remember, the following deprecated warning console log message was found on projects created before Flutter 2.8.

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

It says that the deprecated warning message will be dismissed when the following XML lines 2 are removed from the AndroidManifest.xml file.

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

This XML line 2 has already been removed in Flutter 2.8.1 version. Also, the following console log message appears on every new Flutter 2.8.1 project. I tested it on Samsung Note 9 and Galaxy A10.

130
I/ViewRootImpl@ca6d5b1[MainActivity](29058): [DP] cancelDraw io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@1a21bed  isViewVisible: true
140
I/ViewRootImpl@ca6d5b1[MainActivity](29058): [DP] cancelDraw io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@1a21bed  isViewVisible: true

However, when I replaced the two XML lines in AndroidManifest.xml as before, the "cancelDraw" console log message disappeared (credit - mzohren). Also, the deprecated warning console log message that came before Flutter 2.8 is not displayed. I also changed the splash screen of the project with the flutter_native_splash package and so far no problem.

@chris-PearlIT
Copy link

I have what I believe is a fix for this issue, call it trail and error. but having released to the play store recently required me to add a few SDK Tools to Android Studio and also upgrade a few to latest. The issue has now disappeared on all my Samsung Devices.
I believe it is only a Samsung issue.
I use 3 devices,
S20 ultra, Android 10, One UI 2.1,
S10 ultra, Android 12, One UI 4.0,
A7, Android 11, One UI 3.1

My Android studio currently has:
Android SDK Build-Tools 32.1-rc1
NDK (Side by side) 23.1.7779620
Android SDK Command-line Tools (latest) 6.0
CMake 3.18.1
Android SDK Platform-Tools 32.0.0
Intel x86 Emulator Accelerator (HAXM installer) 7.6.5

CMake and NDK were the 2 I had to install for Play Store.

Also recently changed to a windows 11 pro i9 XPS but this shouldn't make a difference

@stepanzarubin
Copy link

@stepanzarubin which JSON?

I was referencing any potential bug in the user app. It happened for me for the second time, and after looking carefully into the console, I have found this:

 Launching lib\main.dart on SM A505FN in debug mode...
 Running Gradle task 'assembleDebug'...                              4,5s
 √  Built build\app\outputs\flutter-apk\app-debug.apk.
E/flutter ( 3809): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: type 'Null' is not a subtype of type 'Map<String, dynamic>'
E/flutter ( 3809): #0      main (package: ... /main.dart:30:46)
E/flutter ( 3809): <asynchronous suspension>
E/flutter ( 3809):
I/ViewRootImpl@8ae733f[MainActivity]( 3809): [DP] cancelDraw io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@78327c3  isViewVisible: true
...

So the reason of this issue can be not the device type, or not only.
In this case, after asynchronous suspension it continued to execute and fall into this continues splash.
Hope it will help somebody, and, of course, would be great if this exception would be properly handled and displayed, preventing further execution.

@bounty1342
Copy link

For those having issue with a specific device, they could use https://awsdevicefarm.info in order to reproduce it. (They have the Samsung S10e for exemple)

@jericfulo
Copy link

Following this thread

@andrefedev
Copy link

I don't understand why this issue has been closed if it hasn't been solved yet?

@danagbemava-nc
Copy link
Member

Hi @andrefedev, this issue is still open

@lukas5450
Copy link

same issue on samsung galaxy note 20 ultra

@andrefedev
Copy link

@lukas5450 the problem persists updating to Flutter 3.0?

@wiradikusuma
Copy link

@andrefedev yup, tested in Google Pixel 2 XL. Stuck at blank white screen. As soon as I put back the deprecated manifest, it went back to normal.

@danger-ahead
Copy link
Author

@andrefedev yup, tested in Google Pixel 2 XL. Stuck at blank white screen. As soon as I put back the deprecated manifest, it went back to normal.

@GaryQian if this is happening on Pixel devices too, it is not a device specific bug, it seems.

@lattice0
Copy link

Same here, Samsung Galaxy A50 with Android 11

@alhamri
Copy link

alhamri commented Jul 11, 2022

Same here, Samsung Galaxy A50 with Android 11

same issue, same device

@alhamri
Copy link

alhamri commented Jul 11, 2022

adding these lines to AndroidManifest.xml file solved this issue for me:
<meta-data android:name="io.flutter.embedding.android.SplashScreenDrawable" android:resource="@drawable/launch_background" />

but a warning appeared on Run console:
W/FlutterActivityAndFragmentDelegate(21657): A splash screen was provided to Flutter, but this is deprecated. See flutter.dev/go/android-splash-migration for migration steps.

credit to @Waruna-Kaushalya

@lucas-242
Copy link

Same issue with Galaxy Note 10

@GaryQian GaryQian removed their assignment Aug 9, 2022
@GaryQian
Copy link
Contributor

GaryQian commented Aug 9, 2022

cc @camsim99

@camsim99 camsim99 self-assigned this Aug 23, 2022
@andrebadini
Copy link

Same issue Galaxy Tab S6 Lite

@camsim99
Copy link
Contributor

There are two separate issues here:

Issue 1: [DP] cancelDraw warning floods the console

The warning was added by Samsung and is not inherently an issue. It perfectly corresponds to the delay that is invoked by Flutter to wait for the Flutter UI display to load before drawing the FlutterView.

If you see the warning, but the Flutter UI does eventually display, please report any further issues to: #111593.

Issue 2: App stalls on blank screen and does not display Flutter UI

We have not been able to reproduce this and will need more information to debug this further. It is an error that may/may not correlate with the warning. The old splash screen flow essentially hid the error, which is what made this error of the blank screen seem related to the splash screen.

Please report any further issues to: #111594.

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
e: device-specific Only manifests on certain devices e: OS-version specific Affects only some versions of the relevant operating system e: samsung Issues only reproducible on Samsung devices P1 High-priority issues at the top of the work list platform-android Android applications specifically
Projects
None yet
Development

No branches or pull requests