Repository: flutter
Issue: WidgetsBindingObserver.didChangeAppLifecycleState() bug - method not called when app is launching.
Labels: platform-android,platform-ios,framework,engine,d: api docs,P2,team-engine,triaged-engine

I'm experiencing that `didChangeAppLifecycleState()` is not being called on the initial launch. It is only called with the `resumed` state when the app has been in the background and returns to the foreground. I presume this is a bug since the documentation for `AppLifecycleState.resumed` just says: "The application is visible and responding to user input.".

## Steps to Reproduce

<!-- You must include full steps to reproduce so that we can reproduce the problem. -->

1. Run `flutter create bug`.
2. Replace the content of main.dart with the following:
```
import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatefulWidget {
  MyApp({Key key}) : super(key: key);

  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> with WidgetsBindingObserver{
  String latestState = "";

  @override
  void initState() {
    super.initState();
    WidgetsBinding.instance.addObserver(this);
  }

  @override
  void dispose() {
    WidgetsBinding.instance.removeObserver(this);
    super.dispose();
  }

  @override
  void didChangeAppLifecycleState(AppLifecycleState state) {
    print(state.toString());
    setState(() {
      latestState = state.toString();
    });
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text("DEMO - didChangeAppLifecycleState"),
        ),
        body: Center(
          child: Text('Latest state: $latestState'),
        ),
      ),
    );
  }
}
```
3. Run `flutter run` and select an Android target.

**Expected results:** `AppLifecycleState.resumed` is being printed to the console

**Actual results:** It did not happen.

On Android I'm experiencing the problem all the time, no matter how the app is started.

On iOS it is actually working most of the time. It works when the app is started from command line (`flutter run`), it works when it is an installed app on my simulator and launched by pressing the app icon, but is does not work when the app is launched from Android Studio by running main.dart as the "Dart entrypoint".



<details>
  <summary>Logs</summary>

<!--
      Run your application with `flutter run --verbose` and attach all the
      log output below between the lines with the backticks. If there is an
      exception, please see if the error message includes enough information
      to explain how to solve the issue.
-->

```
kk@kks-MacBook-Pro lifecycle_aware_app % flutter run --verbose
[ +112 ms] executing: [/Users/kk/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +41 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] 78910062997c3a836feee883712c241a5fd22983
[        ] executing: [/Users/kk/flutter/] git tag --points-at HEAD
[  +17 ms] Exit code 0 from: git tag --points-at HEAD
[        ] 1.22.5
[   +8 ms] executing: [/Users/kk/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +10 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [/Users/kk/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
[  +44 ms] executing: [/Users/kk/flutter/] git rev-parse --abbrev-ref HEAD
[  +10 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[   +5 ms] executing: sw_vers -productName
[  +12 ms] Exit code 0 from: sw_vers -productName
[        ] Mac OS X
[        ] executing: sw_vers -productVersion
[  +12 ms] Exit code 0 from: sw_vers -productVersion
[        ] 10.15.7
[        ] executing: sw_vers -buildVersion
[  +12 ms] Exit code 0 from: sw_vers -buildVersion
[        ] 19H114
[        ] executing: sysctl hw.optional.arm64
[   +4 ms] Exit code 1 from: sysctl hw.optional.arm64
[        ] sysctl: unknown oid 'hw.optional.arm64'
[  +43 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] 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.
[   +2 ms] Artifact Instance of 'WindowsEngineArtifacts' 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.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[   +9 ms] executing: /Users/kk/Library/Android/sdk/platform-tools/adb devices -l
[   +6 ms] executing: /usr/bin/xcode-select --print-path
[  +10 ms] Exit code 0 from: /usr/bin/xcode-select --print-path
[        ] /Applications/Xcode.app/Contents/Developer
[   +1 ms] executing: /usr/bin/xcodebuild -version
[+1329 ms] Exit code 0 from: /usr/bin/xcodebuild -version
[        ] Xcode 12.1
           Build version 12A7403
[   +2 ms] executing: sysctl hw.optional.arm64
[   +4 ms] Exit code 1 from: sysctl hw.optional.arm64
[        ] sysctl: unknown oid 'hw.optional.arm64'
[        ] executing: xcrun xcdevice list --timeout 2
[   +3 ms] xcrun simctl list --json devices
[        ] executing: xcrun simctl list --json devices
[  +38 ms] List of devices attached
           emulator-5554          device product:sdk_gphone_x86 model:Android_SDK_built_for_x86 device:generic_x86 transport_id:1
[ +108 ms] {
                      "devices" : {
                        "com.apple.CoreSimulator.SimRuntime.tvOS-14-0" : [
                          {
                            "dataPath" : "\/Users\/kk\/Library\/Developer\/CoreSimulator\/Devices\/7C2BE49F-9448-4FFF-9258-9D254C833086\/data",
                            "logPath" : "\/Users\/kk\/Library\/Logs\/CoreSimulator\/7C2BE49F-9448-4FFF-9258-9D254C833086",
                            "udid" : "7C2BE49F-9448-4FFF-9258-9D254C833086",
                            "isAvailable" : true,
                            "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-TV-1080p",
                            "state" : "Shutdown",
                            "name" : "Apple TV"
                          },
                          {
                            "dataPath" : "\/Users\/kk\/Library\/Developer\/CoreSimulator\/Devices\/E4C5DF66-77EC-4406-847B-7BBB8AD32A29\/data",
                            "logPath" : "\/Users\/kk\/Library\/Logs\/CoreSimulator\/E4C5DF66-77EC-4406-847B-7BBB8AD32A29",
                            "udid" : "E4C5DF66-77EC-4406-847B-7BBB8AD32A29",
                            "isAvailable" : true,
                            "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-TV-4K-4K",
                            "state" : "Shutdown",
                            "name" : "Apple TV 4K"
                          },
                          {
                            "dataPath" : "\/Users\/kk\/Library\/Developer\/CoreSimulator\/Devices\/E5CBE24E-F4CC-4182-9E62-E8C539746537\/data",
                            "logPath" : "\/Users\/kk\/Library\/Logs\/CoreSimulator\/E5CBE24E-F4CC-4182-9E62-E8C539746537",
                            "udid" : "E5CBE24E-F4CC-4182-9E62-E8C539746537",
                            "isAvailable" : true,
                            "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-TV-4K-1080p",
                            "state" : "Shutdown",
                            "name" : "Apple TV 4K (at 1080p)"
                          }
                        ],
                        "com.apple.CoreSimulator.SimRuntime.watchOS-7-0" : [
                          {
                            "dataPath" : "\/Users\/kk\/Library\/Developer\/CoreSimulator\/Devices\/27154048-950D-447A-A6E7-FE36CAC31CB6\/data",
                            "logPath" : "\/Users\/kk\/Library\/Logs\/CoreSimulator\/27154048-950D-447A-A6E7-FE36CAC31CB6",
                            "udid" : "27154048-950D-447A-A6E7-FE36CAC31CB6",
                            "isAvailable" : true,
                            "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-5-40mm",
                            "state" : "Shutdown",
                            "name" : "Apple Watch Series 5 - 40mm"
                          },
                          {
                            "dataPath" : "\/Users\/kk\/Library\/Developer\/CoreSimulator\/Devices\/C14D3F1E-0C45-4718-9B10-101846EF4C03\/data",
                            "logPath" : "\/Users\/kk\/Library\/Logs\/CoreSimulator\/C14D3F1E-0C45-4718-9B10-101846EF4C03",
                            "udid" : "C14D3F1E-0C45-4718-9B10-101846EF4C03",
                            "isAvailable" : true,
                            "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-5-44mm",
                            "state" : "Shutdown",
                            "name" : "Apple Watch Series 5 - 44mm"
                          },
                          {
                            "dataPath" : "\/Users\/kk\/Library\/Developer\/CoreSimulator\/Devices\/708DA353-1C9E-4485-AF70-0652EA9E5D76\/data",
                            "logPath" : "\/Users\/kk\/Library\/Logs\/CoreSimulator\/708DA353-1C9E-4485-AF70-0652EA9E5D76",
                            "udid" : "708DA353-1C9E-4485-AF70-0652EA9E5D76",
                            "isAvailable" : true,
                            "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-6-40mm",
                            "state" : "Shutdown",
                            "name" : "Apple Watch Series 6 - 40mm"
                          },
                          {
                            "dataPath" : "\/Users\/kk\/Library\/Developer\/CoreSimulator\/Devices\/34C7D864-FE90-401C-B36E-779E84EA2AD0\/data",
                            "logPath" : "\/Users\/kk\/Library\/Logs\/CoreSimulator\/34C7D864-FE90-401C-B36E-779E84EA2AD0",
                            "udid" : "34C7D864-FE90-401C-B36E-779E84EA2AD0",
                            "isAvailable" : true,
                            "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-6-44mm",
                            "state" : "Shutdown",
                            "name" : "Apple Watch Series 6 - 44mm"
                          }
                        ],
                        "com.apple.CoreSimulator.SimRuntime.iOS-14-1" : [
                          {
                            "dataPath" : "\/Users\/kk\/Library\/Developer\/CoreSimulator\/Devices\/AE96025E-D121-48D2-918C-74B0292DBF0D\/data",
                            "logPath" : "\/Users\/kk\/Library\/Logs\/CoreSimulator\/AE96025E-D121-48D2-918C-74B0292DBF0D",
                            "udid" : "AE96025E-D121-48D2-918C-74B0292DBF0D",
                            "isAvailable" : true,
                            "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-8",
                            "state" : "Shutdown",
                            "name" : "iPhone 8"
                          },
                          {
                            "dataPath" : "\/Users\/kk\/Library\/Developer\/CoreSimulator\/Devices\/F85A7098-64CB-494D-80B2-105BD61A565F\/data",
                            "logPath" : "\/Users\/kk\/Library\/Logs\/CoreSimulator\/F85A7098-64CB-494D-80B2-105BD61A565F",
                            "udid" : "F85A7098-64CB-494D-80B2-105BD61A565F",
                            "isAvailable" : true,
                            "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-8-Plus",
                            "state" : "Shutdown",
                            "name" : "iPhone 8 Plus"
                          },
                          {
                            "dataPath" : "\/Users\/kk\/Library\/Developer\/CoreSimulator\/Devices\/0B34820F-3DF5-415B-BFBC-38733A4FB029\/data",
                            "logPath" : "\/Users\/kk\/Library\/Logs\/CoreSimulator\/0B34820F-3DF5-415B-BFBC-38733A4FB029",
                            "udid" : "0B34820F-3DF5-415B-BFBC-38733A4FB029",
                            "isAvailable" : true,
                            "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-11",
                            "state" : "Shutdown",
                            "name" : "iPhone 11"
                          },
                          {
                            "dataPath" : "\/Users\/kk\/Library\/Developer\/CoreSimulator\/Devices\/1CA0931F-4CA1-433B-911C-E241B306E206\/data",
                            "logPath" : "\/Users\/kk\/Library\/Logs\/CoreSimulator\/1CA0931F-4CA1-433B-911C-E241B306E206",
                            "udid" : "1CA0931F-4CA1-433B-911C-E241B306E206",
                            "isAvailable" : true,
                            "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-11-Pro",
                            "state" : "Shutdown",
                            "name" : "iPhone 11 Pro"
                          },
                          {
                            "dataPath" : "\/Users\/kk\/Library\/Developer\/CoreSimulator\/Devices\/E6D6AA58-BADF-4F56-B2CE-0E710E09F856\/data",
                            "logPath" : "\/Users\/kk\/Library\/Logs\/CoreSimulator\/E6D6AA58-BADF-4F56-B2CE-0E710E09F856",
                            "udid" : "E6D6AA58-BADF-4F56-B2CE-0E710E09F856",
                            "isAvailable" : true,
                            "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-11-Pro-Max",
                            "state" : "Shutdown",
                            "name" : "iPhone 11 Pro Max"
                          },
                          {
                            "dataPath" : "\/Users\/kk\/Library\/Developer\/CoreSimulator\/Devices\/E81AA6B7-2CEB-420A-937B-F125D0BE2E19\/data",
                            "logPath" : "\/Users\/kk\/Library\/Logs\/CoreSimulator\/E81AA6B7-2CEB-420A-937B-F125D0BE2E19",
                            "udid" : "E81AA6B7-2CEB-420A-937B-F125D0BE2E19",
                            "isAvailable" : true,
                            "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-SE--2nd-generation-",
                            "state" : "Shutdown",
                            "name" : "iPhone SE (2nd generation)"
                          },
                          {
                            "dataPath" : "\/Users\/kk\/Library\/Developer\/CoreSimulator\/Devices\/9106A44E-6488-4361-BE9D-712529267F64\/data",
                            "logPath" : "\/Users\/kk\/Library\/Logs\/CoreSimulator\/9106A44E-6488-4361-BE9D-712529267F64",
                            "udid" : "9106A44E-6488-4361-BE9D-712529267F64",
                            "isAvailable" : true,
                            "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-12-mini",
                            "state" : "Shutdown",
                            "name" : "iPhone 12 mini"
                          },
                          {
                            "dataPath" : "\/Users\/kk\/Library\/Developer\/CoreSimulator\/Devices\/0BE22C0F-CF5F-4CAC-9E3A-5BF97B4E9025\/data",
                            "logPath" : "\/Users\/kk\/Library\/Logs\/CoreSimulator\/0BE22C0F-CF5F-4CAC-9E3A-5BF97B4E9025",
                            "udid" : "0BE22C0F-CF5F-4CAC-9E3A-5BF97B4E9025",
                            "isAvailable" : true,
                            "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-12",
                            "state" : "Shutdown",
                            "name" : "iPhone 12"
                          },
                          {
                            "dataPath" : "\/Users\/kk\/Library\/Developer\/CoreSimulator\/Devices\/BC2F8EC9-73D5-4E93-B0C2-8BBD511EFA23\/data",
                            "logPath" : "\/Users\/kk\/Library\/Logs\/CoreSimulator\/BC2F8EC9-73D5-4E93-B0C2-8BBD511EFA23",
                            "udid" : "BC2F8EC9-73D5-4E93-B0C2-8BBD511EFA23",
                            "isAvailable" : true,
                            "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-12-Pro",
                            "state" : "Shutdown",
                            "name" : "iPhone 12 Pro"
                          },
                          {
                            "dataPath" : "\/Users\/kk\/Library\/Developer\/CoreSimulator\/Devices\/160F7675-737B-4C05-B448-39F1C5416CC0\/data",
                            "logPath" : "\/Users\/kk\/Library\/Logs\/CoreSimulator\/160F7675-737B-4C05-B448-39F1C5416CC0",
                            "udid" : "160F7675-737B-4C05-B448-39F1C5416CC0",
                            "isAvailable" : true,
                            "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-12-Pro-Max",
                            "state" : "Booted",
                            "name" : "iPhone 12 Pro Max"
                          },
                          {
                            "dataPath" : "\/Users\/kk\/Library\/Developer\/CoreSimulator\/Devices\/66A482D1-BF93-43EB-BE52-537C6C3E691A\/data",
                            "logPath" : "\/Users\/kk\/Library\/Logs\/CoreSimulator\/66A482D1-BF93-43EB-BE52-537C6C3E691A",
                            "udid" : "66A482D1-BF93-43EB-BE52-537C6C3E691A",
                            "isAvailable" : true,
                            "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPod-touch--7th-generation-",
                            "state" : "Shutdown",
                            "name" : "iPod touch (7th generation)"
                          },
                          {
                            "dataPath" : "\/Users\/kk\/Library\/Developer\/CoreSimulator\/Devices\/95FAB605-4E33-4099-833B-9A658FBDB518\/data",
                            "logPath" : "\/Users\/kk\/Library\/Logs\/CoreSimulator\/95FAB605-4E33-4099-833B-9A658FBDB518",
                            "udid" : "95FAB605-4E33-4099-833B-9A658FBDB518",
                            "isAvailable" : true,
                            "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--9-7-inch-",
                            "state" : "Shutdown",
                            "name" : "iPad Pro (9.7-inch)"
                          },
                          {
                            "dataPath" : "\/Users\/kk\/Library\/Developer\/CoreSimulator\/Devices\/04FE5E53-3533-401B-9155-9DC4AAD81307\/data",
                            "logPath" : "\/Users\/kk\/Library\/Logs\/CoreSimulator\/04FE5E53-3533-401B-9155-9DC4AAD81307",
                            "udid" : "04FE5E53-3533-401B-9155-9DC4AAD81307",
                            "isAvailable" : true,
                            "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--11-inch---2nd-generation-",
                            "state" : "Shutdown",
                            "name" : "iPad Pro (11-inch) (2nd generation)"
                          },
                          {
                            "dataPath" : "\/Users\/kk\/Library\/Developer\/CoreSimulator\/Devices\/B6077C73-6F09-43DB-B92A-C51C649CE42C\/data",
                            "logPath" : "\/Users\/kk\/Library\/Logs\/CoreSimulator\/B6077C73-6F09-43DB-B92A-C51C649CE42C",
                            "udid" : "B6077C73-6F09-43DB-B92A-C51C649CE42C",
                            "isAvailable" : true,
                            "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--12-9-inch---4th-generation-",
                            "state" : "Shutdown",
                            "name" : "iPad Pro (12.9-inch) (4th generation)"
                          },
                          {
                            "dataPath" : "\/Users\/kk\/Library\/Developer\/CoreSimulator\/Devices\/519DFFB3-AA3B-470C-9162-7D34B29366B4\/data",
                            "logPath" : "\/Users\/kk\/Library\/Logs\/CoreSimulator\/519DFFB3-AA3B-470C-9162-7D34B29366B4",
                            "udid" : "519DFFB3-AA3B-470C-9162-7D34B29366B4",
                            "isAvailable" : true,
                            "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPad--8th-generation-",
                            "state" : "Shutdown",
                            "name" : "iPad (8th generation)"
                          },
                          {
                            "dataPath" : "\/Users\/kk\/Library\/Developer\/CoreSimulator\/Devices\/118B0DB2-84A0-4279-8DE3-A46BF8DBF015\/data",
                            "logPath" : "\/Users\/kk\/Library\/Logs\/CoreSimulator\/118B0DB2-84A0-4279-8DE3-A46BF8DBF015",
                            "udid" : "118B0DB2-84A0-4279-8DE3-A46BF8DBF015",
                            "isAvailable" : true,
                            "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Air--4th-generation-",
                            "state" : "Shutdown",
                            "name" : "iPad Air (4th generation)"
                          }
                        ]
                      }
                    }
[+3944 ms] [
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "14.1 (18A8394)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPad13,2",
                        "identifier" : "118B0DB2-84A0-4279-8DE3-A46BF8DBF015",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.ipad-air4-1",
                        "modelName" : "iPad Air (4th generation)",
                        "name" : "iPad Air (4th generation)"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "14.1 (18A8394)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPhone12,8",
                        "identifier" : "E81AA6B7-2CEB-420A-937B-F125D0BE2E19",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.iphone-se-1",
                        "modelName" : "iPhone SE (2nd generation)",
                        "name" : "iPhone SE (2nd generation)"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "14.1 (18A8394)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPhone13,2",
                        "identifier" : "0BE22C0F-CF5F-4CAC-9E3A-5BF97B4E9025",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.iphone-12-1",
                        "modelName" : "iPhone 12",
                        "name" : "iPhone 12"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "7.0 (18R382)",
                        "available" : true,
                        "platform" : "com.apple.platform.watchsimulator",
                        "modelCode" : "Watch5,3",
                        "identifier" : "27154048-950D-447A-A6E7-FE36CAC31CB6",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.watch-series5-1",
                        "modelName" : "Apple Watch Series 5 - 40mm",
                        "name" : "Apple Watch Series 5 - 40mm"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "7.0 (18R382)",
                        "available" : true,
                        "platform" : "com.apple.platform.watchsimulator",
                        "modelCode" : "Watch6,1",
                        "identifier" : "708DA353-1C9E-4485-AF70-0652EA9E5D76",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.watch-series6-1",
                        "modelName" : "Apple Watch Series 6 - 40mm",
                        "name" : "Apple Watch Series 6 - 40mm"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "14.1 (18A8394)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPhone13,4",
                        "identifier" : "160F7675-737B-4C05-B448-39F1C5416CC0",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.iphone-12-pro-max-1",
                        "modelName" : "iPhone 12 Pro Max",
                        "name" : "iPhone 12 Pro Max"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "14.1 (18A8394)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPad8,9",
                        "identifier" : "04FE5E53-3533-401B-9155-9DC4AAD81307",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.ipad-pro-11-2nd-1",
                        "modelName" : "iPad Pro (11-inch) (2nd generation)",
                        "name" : "iPad Pro (11-inch) (2nd generation)"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "14.1 (18A8394)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPad11,7",
                        "identifier" : "519DFFB3-AA3B-470C-9162-7D34B29366B4",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.ipad-8-wwan-1",
                        "modelName" : "iPad (8th generation)",
                        "name" : "iPad (8th generation)"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "14.1 (18A8394)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPhone10,4",
                        "identifier" : "AE96025E-D121-48D2-918C-74B0292DBF0D",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.iphone-8-2",
                        "modelName" : "iPhone 8",
                        "name" : "iPhone 8"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "14.0 (18J383)",
                        "available" : true,
                        "platform" : "com.apple.platform.appletvsimulator",
                        "modelCode" : "AppleTV5,3",
                        "identifier" : "7C2BE49F-9448-4FFF-9258-9D254C833086",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.apple-tv-4",
                        "modelName" : "Apple TV",
                        "name" : "Apple TV"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "14.1 (18A8394)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPad8,12",
                        "identifier" : "B6077C73-6F09-43DB-B92A-C51C649CE42C",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.ipad-pro-12point9-4th-1",
                        "modelName" : "iPad Pro (12.9-inch) (4th generation)",
                        "name" : "iPad Pro (12.9-inch) (4th generation)"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "7.0 (18R382)",
                        "available" : true,
                        "platform" : "com.apple.platform.watchsimulator",
                        "modelCode" : "Watch6,2",
                        "identifier" : "34C7D864-FE90-401C-B36E-779E84EA2AD0",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.watch-series6-1",
                        "modelName" : "Apple Watch Series 6 - 44mm",
                        "name" : "Apple Watch Series 6 - 44mm"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "14.1 (18A8394)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPad6,4",
                        "identifier" : "95FAB605-4E33-4099-833B-9A658FBDB518",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.ipad-pro-9point7-a1674-b9b7ba",
                        "modelName" : "iPad Pro (9.7-inch)",
                        "name" : "iPad Pro (9.7-inch)"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "14.1 (18A8394)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPhone12,1",
                        "identifier" : "0B34820F-3DF5-415B-BFBC-38733A4FB029",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.iphone-11-1",
                        "modelName" : "iPhone 11",
                        "name" : "iPhone 11"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "14.1 (18A8394)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPhone12,3",
                        "identifier" : "1CA0931F-4CA1-433B-911C-E241B306E206",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.iphone-11-pro-1",
                        "modelName" : "iPhone 11 Pro",
                        "name" : "iPhone 11 Pro"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "14.1 (18A8394)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPod9,1",
                        "identifier" : "66A482D1-BF93-43EB-BE52-537C6C3E691A",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.ipod-touch-7-2",
                        "modelName" : "iPod touch (7th generation)",
                        "name" : "iPod touch (7th generation)"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "14.1 (18A8394)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPhone10,5",
                        "identifier" : "F85A7098-64CB-494D-80B2-105BD61A565F",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.iphone-8-plus-2",
                        "modelName" : "iPhone 8 Plus",
                        "name" : "iPhone 8 Plus"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "14.1 (18A8394)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPhone13,1",
                        "identifier" : "9106A44E-6488-4361-BE9D-712529267F64",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.iphone-12-mini-1",
                        "modelName" : "iPhone 12 mini",
                        "name" : "iPhone 12 mini"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "14.1 (18A8394)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPhone12,5",
                        "identifier" : "E6D6AA58-BADF-4F56-B2CE-0E710E09F856",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.iphone-11-pro-max-1",
                        "modelName" : "iPhone 11 Pro Max",
                        "name" : "iPhone 11 Pro Max"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "14.0 (18J383)",
                        "available" : true,
                        "platform" : "com.apple.platform.appletvsimulator",
                        "modelCode" : "AppleTV6,2",
                        "identifier" : "E5CBE24E-F4CC-4182-9E62-E8C539746537",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.apple-tv-4k",
                        "modelName" : "Apple TV 4K (at 1080p)",
                        "name" : "Apple TV 4K (at 1080p)"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "7.0 (18R382)",
                        "available" : true,
                        "platform" : "com.apple.platform.watchsimulator",
                        "modelCode" : "Watch5,4",
                        "identifier" : "C14D3F1E-0C45-4718-9B10-101846EF4C03",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.watch-series5-1",
                        "modelName" : "Apple Watch Series 5 - 44mm",
                        "name" : "Apple Watch Series 5 - 44mm"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "14.1 (18A8394)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPhone13,3",
                        "identifier" : "BC2F8EC9-73D5-4E93-B0C2-8BBD511EFA23",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.iphone-12-pro-1",
                        "modelName" : "iPhone 12 Pro",
                        "name" : "iPhone 12 Pro"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "14.0 (18J383)",
                        "available" : true,
                        "platform" : "com.apple.platform.appletvsimulator",
                        "modelCode" : "AppleTV6,2",
                        "identifier" : "E4C5DF66-77EC-4406-847B-7BBB8AD32A29",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.apple-tv-4k",
                        "modelName" : "Apple TV 4K",
                        "name" : "Apple TV 4K"
                      }
                    ]
[   +6 ms] /Users/kk/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell getprop
[  +21 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[   +3 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[   +2 ms] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +1 ms] Artifact Instance of 'WindowsEngineArtifacts' 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.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +56 ms] Multiple devices found:
[   +4 ms] ro.hardware = ranchu
[   +5 ms] Android SDK built for x86 (mobile) • emulator-5554                        • android-x86 • Android 10 (API 29) (emulator)
[   +1 ms] iPhone 12 Pro Max (mobile)         • 160F7675-737B-4C05-B448-39F1C5416CC0 • ios         • com.apple.CoreSimulator.SimRuntime.iOS-14-1 (simulator)
[   +1 ms] [0]: Android SDK built for x86 (emulator-5554)
[        ] [1]: iPhone 12 Pro Max (160F7675-737B-4C05-B448-39F1C5416CC0)
[   +1 ms] Please choose one (To quit, press "q/Q")
[        ] : 
[+3396 ms] 0
[ +148 ms] Generating /Users/kk/code/lifecycle_aware_app/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[  +43 ms] Using hardware rendering with device Android SDK built for x86. If you notice graphics artifacts, consider enabling software rendering with "--enable-software-rendering".
[  +16 ms] Starting incremental build...
[   +4 ms] Initializing file store
[  +10 ms] Skipping target: gen_localizations
[   +6 ms] complete
[   +3 ms] Launching lib/main.dart on Android SDK built for x86 in debug mode...
[   +5 ms] /Users/kk/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev /Users/kk/flutter/bin/cache/artifacts/engine/darwin-x64/frontend_server.dart.snapshot --sdk-root
/Users/kk/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --target=flutter --debugger-module-names --experimental-emit-debug-metadata -Ddart.developer.causal_async_stacks=true
--output-dill /var/folders/4v/w_fdd05n4vd6501nyct6y1bm0000gn/T/flutter_tools.ZDjL1N/flutter_tool.joOOT2/app.dill --packages .packages -Ddart.vm.profile=false -Ddart.vm.product=false
--bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts --track-widget-creation
--filesystem-scheme org-dartlang-root --initialize-from-dill build/cache.dill.track.dill
[  +12 ms] executing: /Users/kk/Library/Android/sdk/build-tools/30.0.2/aapt dump xmltree /Users/kk/code/lifecycle_aware_app/build/app/outputs/flutter-apk/app.apk AndroidManifest.xml
[   +6 ms] Exit code 0 from: /Users/kk/Library/Android/sdk/build-tools/30.0.2/aapt dump xmltree /Users/kk/code/lifecycle_aware_app/build/app/outputs/flutter-apk/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)0x1d
               A: android:compileSdkVersionCodename(0x01010573)="10" (Raw: "10")
               A: package="com.example.lifecycle_aware_app" (Raw: "com.example.lifecycle_aware_app")
               A: platformBuildVersionCode=(type 0x10)0x1d
               A: platformBuildVersionName=(type 0x10)0xa
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1d
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: application (line=22)
                 A: android:label(0x01010001)="lifecycle_aware_app" (Raw: "lifecycle_aware_app")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
                 E: activity (line=28)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.lifecycle_aware_app.MainActivity" (Raw: "com.example.lifecycle_aware_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=42)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0a0001
                   E: meta-data (line=52)
                     A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable")
                     A: android:resource(0x01010025)=@0x7f040000
                   E: intent-filter (line=56)
                     E: action (line=57)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=59)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=66)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[   +7 ms] executing: /Users/kk/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell -x logcat -v time -t 1
[  +17 ms] Exit code 0 from: /Users/kk/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell -x logcat -v time -t 1
[        ] --------- beginning of main
           01-14 14:17:29.343 E/GnssHAL_GnssInterface( 1795): gnssSvStatusCb: b: input svInfo.flags is 8
[   +1 ms] executing: /Users/kk/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell -x logcat -v time -t 1
[  +16 ms] Exit code 0 from: /Users/kk/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell -x logcat -v time -t 1
[        ] --------- beginning of main
           01-14 14:17:29.343 E/GnssHAL_GnssInterface( 1795): gnssSvStatusCb: b: input svInfo.flags is 8
[  +13 ms] <- compile package:lifecycle_aware_app/main.dart
[   +8 ms] executing: /Users/kk/Library/Android/sdk/platform-tools/adb version
[  +22 ms] Android Debug Bridge version 1.0.41
           Version 30.0.5-6877874
           Installed as /Users/kk/Library/Android/sdk/platform-tools/adb
[   +2 ms] executing: /Users/kk/Library/Android/sdk/platform-tools/adb start-server
[   +9 ms] Building APK
[  +19 ms] Running Gradle task 'assembleDebug'...
[   +1 ms] gradle.properties already sets `android.enableR8`
[   +2 ms] Using gradle from /Users/kk/code/lifecycle_aware_app/android/gradlew.
[        ] /Users/kk/code/lifecycle_aware_app/android/gradlew mode: 33261 rwxr-xr-x.
[  +22 ms] executing: /usr/bin/plutil -convert json -o - /Applications/Android Studio.app/Contents/Info.plist
[  +13 ms] Exit code 0 from: /usr/bin/plutil -convert json -o - /Applications/Android Studio.app/Contents/Info.plist
[        ] {"CFBundleName":"Android
Studio","JVMOptions":{"ClassPath":"$APP_PACKAGE\/Contents\/lib\/bootstrap.jar:$APP_PACKAGE\/Contents\/lib\/extensions.jar:$APP_PACKAGE\/Contents\/lib\/util.jar:$APP_PACKAGE\/Contents\/lib\/jdom.jar:$APP_PA
CKAGE\/Contents\/lib\/log4j.jar:$APP_PACKAGE\/Contents\/lib\/trove4j.jar:$APP_PACKAGE\/Contents\/lib\/jna.jar","JVMVersion":"1.8*,1.8+","MainClass":"com.intellij.idea.Main","Properties":{"idea.paths.select
or":"AndroidStudio4.1","idea.executable":"studio","idea.platform.prefix":"AndroidStudio","idea.vendor.name":"Google","idea.home.path":"$APP_PACKAGE\/Contents"}},"NSDesktopFolderUsageDescription":"An
application in Android Studio requests access to the user's Desktop
folder.","LSArchitecturePriority":["x86_64"],"CFBundleVersion":"AI-201.8743.12.41.6953283","CFBundleDevelopmentRegion":"English","NSCameraUsageDescription":"An application in Android Studio requests access
to the device's camera.","CFBundleDocumentTypes":[{"CFBundleTypeName":"Android Studio Project
File","CFBundleTypeExtensions":["ipr"],"CFBundleTypeRole":"Editor","CFBundleTypeIconFile":"studio.icns"},{"CFBundleTypeName":"All
documents","CFBundleTypeExtensions":["*"],"CFBundleTypeOSTypes":["****"],"CFBundleTypeRole":"Editor","LSTypeIsPackage":false}],"NSSupportsAutomaticGraphicsSwitching":true,"CFBundlePackageType":"APPL","CFBu
ndleIconFile":"studio.icns","NSHighResolutionCapable":true,"CFBundleShortVersionString":"4.1","NSMicrophoneUsageDescription":"An application in Android Studio requests access to the device's
microphone.","CFBundleInfoDictionaryVersion":"6.0","CFBundleExecutable":"studio","NSLocationUsageDescription":"An application in Android Studio requests access to the user's location
information.","LSRequiresNativeExecution":"YES","CFBundleURLTypes":[{"CFBundleTypeRole":"Editor","CFBundleURLName":"Stacktrace","CFBundleURLSchemes":["idea"]}],"CFBundleIdentifier":"com.google.android.stud
io","LSApplicationCategoryType":"public.app-category.developer-tools","CFBundleSignature":"????","LSMinimumSystemVersion":"10.8","NSDocumentsFolderUsageDescription":"An application in Android Studio
requests access to the user's Documents folder.","NSDownloadsFolderUsageDescription":"An application in Android Studio requests access to the user's Downloads
folder.","NSNetworkVolumesUsageDescription":"An application in Android Studio requests access to files on a network volume.","CFBundleGetInfoString":"Android Studio 4.1, build AI-201.8743.12.41.6953283.
Copyright JetBrains s.r.o., (c) 2000-2020","NSRemovableVolumesUsageDescription":"An application in Android Studio requests access to files on a removable volume."}
[   +6 ms] executing: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java -version
[  +78 ms] Exit code 0 from: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java -version
[        ] openjdk version "1.8.0_242-release"
           OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
           OpenJDK 64-Bit Server VM (build 25.242-b3-6915495, mixed mode)
[   +1 ms] executing: [/Users/kk/code/lifecycle_aware_app/android/] /Users/kk/code/lifecycle_aware_app/android/gradlew -Pverbose=true -Ptarget-platform=android-x86
-Ptarget=/Users/kk/code/lifecycle_aware_app/lib/main.dart -Ptrack-widget-creation=true -Pfilesystem-scheme=org-dartlang-root assembleDebug
[ +919 ms] > Task :app:compileFlutterBuildDebug UP-TO-DATE
[        ] > Task :app:packLibsflutterBuildDebug UP-TO-DATE
[        ] > Task :app:preBuild UP-TO-DATE
[        ] > Task :app:preDebugBuild UP-TO-DATE
[        ] > Task :app:checkDebugManifest UP-TO-DATE
[        ] > Task :app:generateDebugBuildConfig UP-TO-DATE
[        ] > Task :app:cleanMergeDebugAssets
[        ] > Task :app:compileDebugAidl NO-SOURCE
[        ] > Task :app:compileDebugRenderscript NO-SOURCE
[        ] > Task :app:mergeDebugShaders UP-TO-DATE
[        ] > Task :app:compileDebugShaders UP-TO-DATE
[        ] > Task :app:generateDebugAssets UP-TO-DATE
[        ] > Task :app:mergeDebugAssets
[ +287 ms] > Task :app:copyFlutterAssetsDebug
[        ] > Task :app:mainApkListPersistenceDebug UP-TO-DATE
[        ] > Task :app:generateDebugResValues UP-TO-DATE
[        ] > Task :app:generateDebugResources UP-TO-DATE
[        ] > Task :app:mergeDebugResources UP-TO-DATE
[        ] > Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
[        ] > Task :app:processDebugManifest UP-TO-DATE
[        ] > Task :app:processDebugResources 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
[  +98 ms] > Task :app:processDebugJavaRes NO-SOURCE
[        ] > Task :app:mergeDebugJavaResource UP-TO-DATE
[        ] > Task :app:checkDebugDuplicateClasses UP-TO-DATE
[        ] > Task :app:transformClassesWithDexBuilderForDebug UP-TO-DATE
[        ] > Task :app:validateSigningDebug UP-TO-DATE
[        ] > Task :app:desugarDebugFileDependencies UP-TO-DATE
[        ] > Task :app:signingConfigWriterDebug UP-TO-DATE
[        ] > Task :app:mergeExtDexDebug UP-TO-DATE
[        ] > Task :app:mergeDexDebug UP-TO-DATE
[        ] > Task :app:mergeDebugJniLibFolders UP-TO-DATE
[        ] > Task :app:mergeDebugNativeLibs UP-TO-DATE
[        ] > Task :app:stripDebugDebugSymbols UP-TO-DATE
[ +102 ms] > Task :app:packageDebug UP-TO-DATE
[  +30 ms] > Task :app:assembleDebug
[        ] BUILD SUCCESSFUL in 1s
[        ] 31 actionable tasks: 4 executed, 27 up-to-date
[ +366 ms] Running Gradle task 'assembleDebug'... (completed in 1.9s)
[  +33 ms] calculateSha: LocalDirectory: '/Users/kk/code/lifecycle_aware_app/build/app/outputs/flutter-apk'/app.apk
[  +21 ms] calculateSha: reading file took 20us
[ +435 ms] calculateSha: computing sha took 434us
[   +3 ms] ✓ Built build/app/outputs/flutter-apk/app-debug.apk.
[   +4 ms] executing: /Users/kk/Library/Android/sdk/build-tools/30.0.2/aapt dump xmltree /Users/kk/code/lifecycle_aware_app/build/app/outputs/flutter-apk/app.apk AndroidManifest.xml
[   +8 ms] Exit code 0 from: /Users/kk/Library/Android/sdk/build-tools/30.0.2/aapt dump xmltree /Users/kk/code/lifecycle_aware_app/build/app/outputs/flutter-apk/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)0x1d
               A: android:compileSdkVersionCodename(0x01010573)="10" (Raw: "10")
               A: package="com.example.lifecycle_aware_app" (Raw: "com.example.lifecycle_aware_app")
               A: platformBuildVersionCode=(type 0x10)0x1d
               A: platformBuildVersionName=(type 0x10)0xa
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1d
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: application (line=22)
                 A: android:label(0x01010001)="lifecycle_aware_app" (Raw: "lifecycle_aware_app")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
                 E: activity (line=28)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.lifecycle_aware_app.MainActivity" (Raw: "com.example.lifecycle_aware_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=42)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0a0001
                   E: meta-data (line=52)
                     A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable")
                     A: android:resource(0x01010025)=@0x7f040000
                   E: intent-filter (line=56)
                     E: action (line=57)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=59)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=66)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[   +1 ms] Stopping app 'app.apk' on Android SDK built for x86.
[        ] executing: /Users/kk/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell am force-stop com.example.lifecycle_aware_app
[  +28 ms] executing: /Users/kk/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell pm list packages com.example.lifecycle_aware_app
[  +24 ms] package:com.example.lifecycle_aware_app
[   +2 ms] executing: /Users/kk/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell cat /data/local/tmp/sky.com.example.lifecycle_aware_app.sha1
[  +16 ms] b1dcf8dd34313c1604b7cf9e030ebd63ef06d470
[        ] Latest build already installed.
[        ] Android SDK built for x86 startApp
[   +2 ms] executing: /Users/kk/Library/Android/sdk/platform-tools/adb -s emulator-5554 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.lifecycle_aware_app/com.example.lifecycle_aware_app.MainActivity
[  +29 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.lifecycle_aware_app/.MainActivity (has extras) }
[        ] Waiting for observatory port to be available...
[ +724 ms] Observatory URL on device: http://127.0.0.1:44099/5zST-pQoNKs=/
[   +1 ms] executing: /Users/kk/Library/Android/sdk/platform-tools/adb -s emulator-5554 forward tcp:0 tcp:44099
[   +7 ms] 64340
[        ] Forwarded host port 64340 to device port 44099 for Observatory
[   +3 ms] Caching compiled dill
[  +28 ms] Connecting to service protocol: http://127.0.0.1:64340/5zST-pQoNKs=/
[   +1 ms] DDS is currently disabled due to https://github.com/flutter/flutter/issues/62507
[ +309 ms] Successfully connected to service protocol: http://127.0.0.1:64340/5zST-pQoNKs=/
[        ] Waiting for Android SDK built for x86 to report its views...
[   +5 ms] Waiting for Android SDK built for x86 to report its views... (completed in 5ms)
[   +6 ms] DevFS: Creating new filesystem on the device (null)
[  +14 ms] DevFS: Created new filesystem on the device (file:///data/user/0/com.example.lifecycle_aware_app/code_cache/lifecycle_aware_appTNYUJN/lifecycle_aware_app/)
[   +1 ms] Updating assets
[  +87 ms] Syncing files to device Android SDK built for x86...
[   +1 ms] Scanning asset files
[   +2 ms] <- reset
[        ] Compiling dart to kernel with 0 updated files
[        ] <- recompile package:lifecycle_aware_app/main.dart c15d32a5-4f1d-42b5-b12a-2a58398f9b1f
[        ] <- c15d32a5-4f1d-42b5-b12a-2a58398f9b1f
[   +4 ms] D/EGL_emulation(31166): eglMakeCurrent: 0xe1484d20: ver 3 0 (tinfo 0xd5e07670)
[        ] D/eglCodecCommon(31166): setVertexArrayObject: set vao to 0 (0) 1 0
[  +40 ms] Updating files
[ +109 ms] DevFS: Sync finished
[        ] Syncing files to device Android SDK built for x86... (completed in 159ms)
[        ] Synced 1.8MB.
[        ] <- accept
[   +1 ms] Connected to _flutterView/0xd5e53c10.
[        ] Flutter run key commands.
[   +1 ms] r Hot reload. 🔥🔥🔥
[   +1 ms] R Hot restart.
[        ] h Repeat this help message.
[        ] d Detach (terminate "flutter run" but leave application running).
[        ] c Clear the screen
[        ] q Quit (terminate the application on the device).
[        ] An Observatory debugger and profiler on Android SDK built for x86 is available at: http://127.0.0.1:64340/5zST-pQoNKs=/


```

<!--
     Run `flutter analyze` and attach any output of that command below.
     If there are any analysis errors, try resolving them before filing this issue.
-->

```
kk@kks-MacBook-Pro lifecycle_aware_app % flutter analyze
Analyzing lifecycle_aware_app...                                        
No issues found! (ran in 1.6s)
```

```
kk@kks-MacBook-Pro lifecycle_aware_app % flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 1.22.5, on Mac OS X 10.15.7 19H114 darwin-x64, locale en-GB)
 
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 12.1)
[✓] Android Studio (version 4.1)
[✓] IntelliJ IDEA Ultimate Edition (version 2020.3.1)
[✓] Connected device (2 available)

• No issues found!

```

</details>