Repository: flutter
Issue: [Hero] Failed assertion: line 730 pos 12: 'manifest.tag ==newManifest.tag': is not true.
Labels: framework,a: animation,has reproducible steps,P2,found in release: 2.5,found in release: 2.6,team-framework,triaged-framework

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill out the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

This issue relates to hero widgets. In the reproduction sample, I have put three blocks on top of each other, all of which are Heros that are kept throughout the three pages in the app. However, the middle block is only put into the widget tree after two seconds. If the user navigates further before this happens, the block animations get messed up.

## Steps to Reproduce

<!-- Please include full steps to reproduce so that we can reproduce the problem. -->

1. Execute `flutter run` on the code sample <!-- (see "Code sample" section below) -->
2. Press the "Next" button within two seconds.
3. When any further navigation is performed, either popping or pushing, the animations get messed up, and an exception is thrown.

**Expected results:** <!-- what did you want to see? -->
Normal animation; all blocks go right on pushing to the navigation stack and left when popping from it.

**Actual results:** <!-- what did you see? -->
The middle and lower blocks have their animations messed up.

<details>
<summary>Code sample</summary>

<!--
      Please create a minimal reproducible sample that shows the problem
      and attach it below between the lines with the backticks.

      To create it you can use `flutter create bug` command and update the `main.dart` file.

      Alternatively, you can use https://dartpad.dev/
      which is capable of creating and running small Flutter apps.

      Without this we will unlikely be able to progress on the issue, and because of that
      we regretfully will have to close it.
-->

```dart
// ignore_for_file: use_key_in_widget_constructors, unnecessary_this, no_logic_in_create_state

import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';


const transitionDuration = Duration(milliseconds: 2000);

const pages = 3;
const double padding = 24;

// Transition with no animation
PageRoute noAnimationTransition(Widget widget, Duration duration) => PageRouteBuilder(
  transitionDuration: duration,
  reverseTransitionDuration: duration,
  pageBuilder: (_, __, ___) => widget,
);

class BuildWidget extends StatefulWidget {

  final int page;
  const BuildWidget(this.page);

  @override
  _BuildWidget createState() => _BuildWidget(this.page);
}

class _BuildWidget extends State<BuildWidget> with WidgetsBindingObserver {

  bool showMover2;

  final int page;
  _BuildWidget(this.page) : showMover2 = page != 0;

  @override
  void initState() {
    super.initState();
    if (this.page == 0) {
      WidgetsBinding.instance?.addPostFrameCallback((timeStamp) async {
        await Future.delayed(transitionDuration);
        if (mounted) {
          setState(() {
            this.showMover2 = true;
          });
        }
      });
    }
  }

  @override
  Widget build(BuildContext context) => Scaffold(
    body: Padding(
      padding: const EdgeInsets.all(padding),
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.center,
        mainAxisAlignment: MainAxisAlignment.spaceAround,
        children: [
          Text("Page $page"),
          SizedBox(
            height: 60,
            width: 300,
            child: Stack(
              children: [
                Positioned(
                  child: Hero(
                    tag: "mover1",
                    child: Container(
                      height: 20,
                      width: 20,
                      color: Colors.green,
                    ),
                  ),
                  left: this.page * 50,
                  top: 0,
                ),
                if (this.showMover2)
                  Positioned(
                    child: Hero(
                      tag: "mover2",
                      child: Container(
                        height: 30,
                        width: 40,
                        color: Colors.blue,
                      ),
                    ),
                    left: this.page * 50,
                    top: 20,
                  ),
                Positioned(
                  child: Hero(
                    tag: "mover3",
                    child: Container(
                      height: 10,
                      width: 20,
                      color: Colors.red,
                    ),
                  ),
                  left: this.page * 50,
                  top: 50,
                ),
              ],
            ),
          ),
          this.nextButton(context),
        ],
      ),
    ),
  );

  Widget nextButton(BuildContext context) => ElevatedButton(
    onPressed: () {
      if (this.page != pages - 1) {
        Navigator.of(context).pushNamed("${this.page+1}");
      }
    },
    child: const Text("Next"),
  );
}

class Page0 extends StatelessWidget {
  static const route = "0";
  @override Widget build(context) => WillPopScope(
    onWillPop: () async => false,
    child: const BuildWidget(0)
  );
}
class Page1 extends StatelessWidget {
  static const route = "1";
  @override Widget build(context) => const BuildWidget(1);
}
class Page2 extends StatelessWidget {
  static const route = "2";
  @override Widget build(context) => const BuildWidget(2);
}

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: "Hero issue demo",
      home: Page0(),
      onGenerateRoute: (settings) {
        switch (settings.name) {
          case Page0.route:
            return noAnimationTransition(Page0(), transitionDuration);
          case Page1.route:
            return noAnimationTransition(Page1(), transitionDuration);
          case Page2.route:
            return noAnimationTransition(Page2(), transitionDuration);
        }
      },
    );
  }
}
```

</details>

<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.
-->

```
[  +60 ms] executing: uname -m
[  +32 ms] Exit code 0 from: uname -m
[        ] x86_64
[   +8 ms] executing: [/home/asger/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +9 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] 18116933e77adc82f80866c928266a5b4f1ed645
[        ] executing: [/home/asger/flutter/] git tag --points-at 18116933e77adc82f80866c928266a5b4f1ed645
[  +15 ms] Exit code 0 from: git tag --points-at 18116933e77adc82f80866c928266a5b4f1ed645
[        ] 2.5.3
[  +12 ms] executing: [/home/asger/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[   +8 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [/home/asger/flutter/] git ls-remote --get-url origin
[   +7 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +92 ms] executing: [/home/asger/flutter/] git rev-parse --abbrev-ref HEAD
[   +7 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[  +51 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.
[   +2 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.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +41 ms] executing: /home/asger/Android/Sdk/platform-tools/adb devices -l
[  +47 ms] List of devices attached
           ZL5224WZ5X             device usb:3-2 product:nora_row model:moto_e5 device:nora_8917 transport_id:1
[   +8 ms] /home/asger/Android/Sdk/platform-tools/adb -s ZL5224WZ5X shell getprop
[ +138 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[   +2 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +1 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.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +80 ms] Skipping pub get: version match.
[ +101 ms] Generating /home/asger/Desktop/herooo/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[  +55 ms] ro.hardware = qcom
[  +51 ms] Initializing file store
[   +8 ms] Skipping target: gen_localizations
[   +6 ms] Skipping target: gen_dart_plugin_registrant
[   +1 ms] Skipping target: _composite
[   +1 ms] complete
[   +5 ms] Launching lib/main.dart on moto e5 in debug mode...
[   +8 ms] /home/asger/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev /home/asger/flutter/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root /home/asger/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.VOHTYY/flutter_tool.HGJTMP/app.dill
--packages /home/asger/Desktop/herooo/.dart_tool/package_config.json -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
[  +16 ms] executing: /home/asger/Android/Sdk/build-tools/31.0.0/aapt dump xmltree /home/asger/Desktop/herooo/build/app/outputs/flutter-apk/app.apk AndroidManifest.xml
[  +10 ms] Exit code 0 from: /home/asger/Android/Sdk/build-tools/31.0.0/aapt dump xmltree /home/asger/Desktop/herooo/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)0x1e
               A: android:compileSdkVersionCodename(0x01010573)="11" (Raw: "11")
               A: package="com.example.herooo" (Raw: "com.example.herooo")
               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: application (line=16)
                 A: android:label(0x01010001)="herooo" (Raw: "herooo")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
                 E: activity (line=21)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.herooo.MainActivity" (Raw: "com.example.herooo.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=35)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0a0001
                   E: meta-data (line=45)
                     A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable")
                     A: android:resource(0x01010025)=@0x7f040000
                   E: intent-filter (line=49)
                     E: action (line=50)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=52)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=59)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[  +10 ms] executing: /home/asger/Android/Sdk/platform-tools/adb -s ZL5224WZ5X shell -x logcat -v time -t 1
[  +18 ms] <- compile package:herooo/main.dart
[  +86 ms] --------- beginning of main
           11-01 15:34:47.044 V/LocSvc_HIDL_IzatProvider_jni( 1674): [onLocationChanged][136] [HC] <<= [HS]
[  +19 ms] executing: /home/asger/Android/Sdk/platform-tools/adb version
[  +14 ms] Android Debug Bridge version 1.0.41
           Version 31.0.3-7562133
           Installed as /home/asger/Android/Sdk/platform-tools/adb
[   +4 ms] executing: /home/asger/Android/Sdk/platform-tools/adb start-server
[  +35 ms] Building APK
[  +17 ms] Running Gradle task 'assembleDebug'...
[   +3 ms] Using gradle from /home/asger/Desktop/herooo/android/gradlew.
[  +23 ms] executing: /snap/android-studio/114/android-studio/jre/bin/java -version
[ +115 ms] Exit code 0 from: /snap/android-studio/114/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)
[   +2 ms] executing: /home/asger/android-studio/jre/bin/java -version
[ +120 ms] Exit code 0 from: /home/asger/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)
[   +3 ms] executing: [/home/asger/Desktop/herooo/android/] /home/asger/Desktop/herooo/android/gradlew -Pverbose=true -Ptarget-platform=android-arm -Ptarget=/home/asger/Desktop/herooo/lib/main.dart -Pdart-defines=RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ== -Pdart-obfuscation=false -Ptrack-widget-creation=true -Ptree-shake-icons=false -Pfilesystem-scheme=org-dartlang-root assembleDebug
[+3160 ms] > Task :app:compileFlutterBuildDebug
[        ] [  +65 ms] executing: uname -m
[        ] [  +35 ms] Exit code 0 from: uname -m
[        ] [        ] x86_64
[        ] [   +6 ms] executing: [/home/asger/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [   +7 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [        ] 18116933e77adc82f80866c928266a5b4f1ed645
[        ] [        ] executing: [/home/asger/flutter/] git tag --points-at 18116933e77adc82f80866c928266a5b4f1ed645
[        ] [  +19 ms] Exit code 0 from: git tag --points-at 18116933e77adc82f80866c928266a5b4f1ed645
[        ] [        ] 2.5.3
[        ] [  +14 ms] executing: [/home/asger/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[        ] [   +7 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] [        ] origin/stable
[        ] [        ] executing: [/home/asger/flutter/] git ls-remote --get-url origin
[        ] [   +8 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] [        ] https://github.com/flutter/flutter.git
[        ] [  +57 ms] executing: [/home/asger/flutter/] git rev-parse --abbrev-ref HEAD
[        ] [   +7 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] [        ] stable
[        ] [  +43 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.
[        ] [   +2 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.
[        ] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] [  +71 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[        ] [   +1 ms] 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.
[        ] [        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[        ] [        ] 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.
[        ] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'PubDependencies' is not required, skipping update.
[        ] [  +41 ms] Initializing file store
[        ] [   +4 ms] Done initializing file store
[        ] [  +31 ms] Skipping target: gen_localizations
[        ] [   +9 ms] Skipping target: gen_dart_plugin_registrant
[        ] [ +300 ms] kernel_snapshot: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs have updated contents: /home/asger/Desktop/herooo/lib/main.dart}
[        ] [  +11 ms] /home/asger/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev /home/asger/flutter/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root /home/asger/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --target=flutter --no-print-incremental-dependencies -DFLUTTER_WEB_AUTO_DETECT=true -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts --track-widget-creation
--no-link-platform --packages /home/asger/Desktop/herooo/.dart_tool/package_config.json --output-dill /home/asger/Desktop/herooo/.dart_tool/flutter_build/40fdbe0aa4a2796c54516b9fa0fdc3ad/app.dill --depfile /home/asger/Desktop/herooo/.dart_tool/flutter_build/40fdbe0aa4a2796c54516b9fa0fdc3ad/kernel_snapshot.d package:herooo/main.dart
[+7186 ms] [+8268 ms] kernel_snapshot: Complete
[ +399 ms] [ +403 ms] debug_android_application: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs have updated contents: /home/asger/Desktop/herooo/.dart_tool/flutter_build/40fdbe0aa4a2796c54516b9fa0fdc3ad/app.dill}
[ +199 ms] [ +194 ms] debug_android_application: Complete
[ +199 ms] [ +200 ms] Persisting file store
[        ] [   +4 ms] Done persisting file store
[        ] [   +4 ms] build succeeded.
[        ] [   +7 ms] "flutter assemble" took 9.571ms.
[  +99 ms] [  +85 ms] ensureAnalyticsSent: 81ms
[        ] [   +2 ms] Running shutdown hooks
[        ] [        ] Shutdown hooks complete
[        ] [        ] exiting with code 0
[ +199 ms] > Task :app:packLibsflutterBuildDebug UP-TO-DATE
[        ] > Task :app:preBuild UP-TO-DATE
[        ] > Task :app:preDebugBuild UP-TO-DATE
[        ] > Task :app:compileDebugAidl NO-SOURCE
[        ] > Task :app:compileDebugRenderscript NO-SOURCE
[        ] > Task :app:generateDebugBuildConfig UP-TO-DATE
[        ] > Task :app:checkDebugAarMetadata UP-TO-DATE
[        ] > Task :app:cleanMergeDebugAssets
[        ] > Task :app:mergeDebugShaders UP-TO-DATE
[        ] > Task :app:compileDebugShaders NO-SOURCE
[        ] > Task :app:generateDebugAssets UP-TO-DATE
[        ] > Task :app:mergeDebugAssets
[ +198 ms] > Task :app:copyFlutterAssetsDebug
[        ] > 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:extractDeepLinksDebug UP-TO-DATE
[   +1 ms] > Task :app:processDebugMainManifest UP-TO-DATE
[        ] > Task :app:processDebugManifest UP-TO-DATE
[        ] > Task :app:processDebugManifestForPackage UP-TO-DATE
[  +97 ms] > Task :app:processDebugResources UP-TO-DATE
[        ] > Task :app:compileDebugKotlin UP-TO-DATE
[        ] > Task :app:javaPreCompileDebug UP-TO-DATE
[        ] > Task :app:compileDebugJavaWithJavac UP-TO-DATE
[   +1 ms] > Task :app:compileDebugSources UP-TO-DATE
[        ] > Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
[        ] > Task :app:processDebugJavaRes NO-SOURCE
[        ] > Task :app:mergeDebugJavaResource UP-TO-DATE
[  +97 ms] > Task :app:checkDebugDuplicateClasses UP-TO-DATE
[        ] > Task :app:dexBuilderDebug UP-TO-DATE
[        ] > Task :app:desugarDebugFileDependencies UP-TO-DATE
[        ] > Task :app:mergeExtDexDebug UP-TO-DATE
[  +99 ms] > Task :app:mergeDexDebug UP-TO-DATE
[        ] > Task :app:mergeDebugJniLibFolders UP-TO-DATE
[        ] > Task :app:mergeDebugNativeLibs UP-TO-DATE
[        ] > Task :app:stripDebugDebugSymbols UP-TO-DATE
[        ] > Task :app:validateSigningDebug UP-TO-DATE
[ +299 ms] > Task :app:compressDebugAssets
[ +499 ms] > Task :app:packageDebug
[ +100 ms] > Task :app:assembleDebug
[        ] 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_line_warnings
[        ] BUILD SUCCESSFUL in 12s
[        ] 32 actionable tasks: 7 executed, 25 up-to-date
[ +391 ms] Running Gradle task 'assembleDebug'... (completed in 13,5s)
[  +49 ms] calculateSha: LocalDirectory: '/home/asger/Desktop/herooo/build/app/outputs/flutter-apk'/app.apk
[ +452 ms] ✓  Built build/app/outputs/flutter-apk/app-debug.apk.
[   +2 ms] executing: /home/asger/Android/Sdk/build-tools/31.0.0/aapt dump xmltree /home/asger/Desktop/herooo/build/app/outputs/flutter-apk/app.apk AndroidManifest.xml
[  +12 ms] Exit code 0 from: /home/asger/Android/Sdk/build-tools/31.0.0/aapt dump xmltree /home/asger/Desktop/herooo/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)0x1e
               A: android:compileSdkVersionCodename(0x01010573)="11" (Raw: "11")
               A: package="com.example.herooo" (Raw: "com.example.herooo")
               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: application (line=16)
                 A: android:label(0x01010001)="herooo" (Raw: "herooo")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
                 E: activity (line=21)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.herooo.MainActivity" (Raw: "com.example.herooo.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=35)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0a0001
                   E: meta-data (line=45)
                     A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable")
                     A: android:resource(0x01010025)=@0x7f040000
                   E: intent-filter (line=49)
                     E: action (line=50)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=52)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=59)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[   +3 ms] Stopping app 'app.apk' on moto e5.
[   +1 ms] executing: /home/asger/Android/Sdk/platform-tools/adb -s ZL5224WZ5X shell am force-stop com.example.herooo
[ +196 ms] executing: /home/asger/Android/Sdk/platform-tools/adb -s ZL5224WZ5X shell pm list packages com.example.herooo
[+1089 ms] package:com.example.herooo
[   +3 ms] executing: /home/asger/Android/Sdk/platform-tools/adb -s ZL5224WZ5X shell cat /data/local/tmp/sky.com.example.herooo.sha1
[  +60 ms] 3767570ad99173ae0919914cdbb6fadba905b1ce
[   +1 ms] Installing APK.
[   +2 ms] Installing build/app/outputs/flutter-apk/app.apk...
[        ] executing: /home/asger/Android/Sdk/platform-tools/adb -s ZL5224WZ5X install -t -r /home/asger/Desktop/herooo/build/app/outputs/flutter-apk/app.apk
[+7166 ms] Performing Streamed Install
                    Success
[        ] Installing build/app/outputs/flutter-apk/app.apk... (completed in 7,2s)
[   +1 ms] executing: /home/asger/Android/Sdk/platform-tools/adb -s ZL5224WZ5X shell echo -n c02ba2e68877bba71414ba8a9000236644af64e4 > /data/local/tmp/sky.com.example.herooo.sha1
[ +127 ms] executing: /home/asger/Android/Sdk/platform-tools/adb -s ZL5224WZ5X shell -x logcat -v time -t 1
[  +94 ms] --------- beginning of main
           11-01 15:35:17.051 W/ResourceType( 1674): For resource 0x7f0808d8, entry index(2264) is beyond type entryCount(1454)
[  +14 ms] executing: /home/asger/Android/Sdk/platform-tools/adb -s ZL5224WZ5X 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.herooo/com.example.herooo.MainActivity
[ +123 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.herooo/.MainActivity (has extras) }
[        ] Waiting for observatory port to be available...
[+1892 ms] W/FlutterActivityAndFragmentDelegate(24861): A splash screen was provided to Flutter, but this is deprecated. See flutter.dev/go/android-splash-migration for migration steps.
[ +454 ms] Observatory URL on device: http://127.0.0.1:38857/x1lL2aNNQVg=/
[   +2 ms] executing: /home/asger/Android/Sdk/platform-tools/adb -s ZL5224WZ5X forward tcp:0 tcp:38857
[  +14 ms] 36317
[        ] Forwarded host port 36317 to device port 38857 for Observatory
[   +7 ms] Caching compiled dill
[ +110 ms] Connecting to service protocol: http://127.0.0.1:36317/x1lL2aNNQVg=/
[ +783 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:36317/x1lL2aNNQVg=/.
[ +588 ms] DDS is listening at http://127.0.0.1:34679/T_gzoD1AmqM=/.
[  +64 ms] Successfully connected to service protocol: http://127.0.0.1:36317/x1lL2aNNQVg=/
[ +191 ms] DevFS: Creating new filesystem on the device (null)
[ +120 ms] DevFS: Created new filesystem on the device (file:///data/user/0/com.example.herooo/code_cache/heroooWUFRQF/herooo/)
[   +3 ms] Updating assets
[  +78 ms] Syncing files to device moto e5...
[   +1 ms] <- reset
[        ] Compiling dart to kernel with 0 updated files
[   +1 ms] <- recompile package:herooo/main.dart f2083017-ae51-4067-8487-494ecdea8a84
[        ] <- f2083017-ae51-4067-8487-494ecdea8a84
[ +166 ms] DevTools activation throttled until 2021-11-01 22:26:56.051667.
[  +12 ms] Updating files.
[        ] DevFS: Sync finished
[   +2 ms] Syncing files to device moto e5... (completed in 182ms)
[   +1 ms] Synced 0.0MB.
[   +2 ms] <- accept
[   +6 ms] Connected to _flutterView/0xa1479410.
[   +3 ms] Flutter run key commands.
[   +3 ms] r Hot reload. 🔥🔥🔥
[   +1 ms] 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 💪
[   +1 ms] An Observatory debugger and profiler on moto e5 is available at: http://127.0.0.1:34679/T_gzoD1AmqM=/
[+2529 ms] The Flutter DevTools debugger and profiler on moto e5 is available at: http://127.0.0.1:9102?uri=http://127.0.0.1:34679/T_gzoD1AmqM=/
[+5027 ms] 
                    ══╡ EXCEPTION CAUGHT BY SCHEDULER LIBRARY ╞═════════════════════════════════════════════════════════
                    The following assertion was thrown during a scheduler callback:
                    'package:flutter/src/widgets/heroes.dart': Failed assertion: line 730 pos 12: 'manifest.tag ==
                    newManifest.tag': is not true.
                    
                    Either the assertion indicates an error in the framework itself, or we should provide substantially
                    more information in this error message to help you determine and fix the underlying cause.
                    In either case, please report this assertion by filing a bug on GitHub:
                      https://github.com/flutter/flutter/issues/new?template=2_bug.md
                    
                    When the exception was thrown, this was the stack:
                    #2      _HeroFlight.divert (package:flutter/src/widgets/heroes.dart:730:12)
                    #3      HeroController._startHeroTransition (package:flutter/src/widgets/heroes.dart:1011:26)
                    #4      HeroController._maybeStartHeroTransition.<anonymous closure> (package:flutter/src/widgets/heroes.dart:934:11)
                    #5      SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1143:15)
                    #6      SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1088:9)
                    #7      SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:996:5)
                    #11     _invoke (dart:ui/hooks.dart:166:10)
                    #12     PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:270:5)
                    #13     _drawFrame (dart:ui/hooks.dart:129:31)
                    (elided 5 frames from class _AssertionError and dart:async)
                    ════════════════════════════════════════════════════════════════════════════════════════════════════
[+1383 ms] I/zygote  (24861): Do partial code cache collection, code=30KB, data=28KB
[        ] I/zygote  (24861): After code cache collection, code=30KB, data=28KB
[        ] I/zygote  (24861): Increasing code cache capacity to 128KB
```

<!--
     Run `flutter analyze` and attach any output of that command below.
     If there are any analysis errors, try resolving them before filing this issue.
-->

```
Analyzing herooo...                                                     
No issues found! (ran in 1.2s)
```

<!-- Finally, paste the output of running `flutter doctor -v` here. -->

```
[✓] Flutter (Channel stable, 2.5.3, on Ubuntu 20.04.3 LTS 5.11.0-38-generic, locale da_DK.UTF-8)
    • Flutter version 2.5.3 at /home/asger/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 18116933e7 (2 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/asger/Android/Sdk
    • Platform android-31, build-tools 31.0.0
    • ANDROID_HOME = /home/asger/Android/Sdk
    • ANDROID_SDK_ROOT = /home/asger/Android/Sdk
    • Java binary at: /snap/android-studio/114/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 (Cannot find Chrome executable at google-chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✓] Android Studio (version 2020.3)
    • Android Studio at /snap/android-studio/114/android-studio
    • Flutter plugin version 60.1.2
    • Dart plugin version 203.8292
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[✓] Android Studio
    • Android Studio at /home/asger/android-studio
    • 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
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[✓] VS Code (version 1.61.2)
    • VS Code at /usr/share/code
    • Flutter extension version 3.27.0

[✓] Connected device (1 available)
    • moto e5 (mobile) • ZL5224WZ5X • android-arm • Android 8.0.0 (API 26)

! Doctor found issues in 1 category.
```

</details>


<!--
      Consider also attaching screenshots and/or videos to better
      illustrate the issue.

      You can upload them directly on GitHub.
      Beware that video file size is limited to 10MB.
-->