registerGeneratedResFolders

registerGeneratedResFolders

本文介绍了我在运行项目时遇到任何问题吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在调试模式下为x86构建的Android SDK上启动lib \ main.dart ...不推荐使用registerResGeneratingTask,请使用registerGeneratedResFolders(FileCollection)不推荐使用registerResGeneratingTask,请使用registerGeneratedResFolders(FileCollection)registerResGeneratingTask已弃用,请使用registerGeneratedResFolders(FileCollection)

编译器消息:../../../../../Programs/flutter/.pub-cache/hosted/pub.dartlang.org/extended_image-0.5.3/lib/src/gesture/extended_image_slide_page_route.dart:331: 9:错误:没有名为'animation'的命名参数. 动画:动画, ^^^^^^^^^^../../../../../Programs/flutter/packages/flutter/lib/src/cupertino/route.dart:436:3:上下文:找到了该候选者,但参数不匹配. CupertinoFullscreenDialogTransition({ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ p

编译器消息:../../../../../Programs/flutter/.pub-cache/hosted/pub.dartlang.org/extended_image-0.5.3/lib/src/gesture/extended_image_slide_page_route.dart:331: 9:错误:没有名为'animation'的命名参数. 动画:动画, ^^^^^^^^^^../../../../../Programs/flutter/packages/flutter/lib/src/cupertino/route.dart:436:3:上下文:找到了该候选者,但参数不匹配. CupertinoFullscreenDialogTransition({ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^目标kernel_snapshot失败:异常:创建快照时出错:null构建失败.

失败:构建失败,并出现异常.

  • 其中:脚本'E:\ from F \ Programs \ flutter \ packages \ flutter_tools \ gradle \ flutter.gradle'行:896

  • 出了什么问题:任务':app:compileFlutterBuildDebug'的执行失败.

  • 尝试:使用--stacktrace选项运行以获取堆栈跟踪.使用--info或--debug选项运行,以获取更多日志输出.与--scan一起运行以获得完整的见解.

  • https://help.gradle.org

    <

在1m 3s内失败异常:Gradle任务assembleDebug失败,退出代码为1退出(sigterm)

我在运行项目的任何解决方案时遇到此问题吗?

解决方案

检查此文件:第331行的extended_image_slide_page_route.dart

您的错误:没有名为'animation'的命名参数."

您没有名为动画"的参数.

Launching lib\main.dart on Android SDK built for x86 in debug mode...registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)

Compiler message:../../../../../Programs/flutter/.pub-cache/hosted/pub.dartlang.org/extended_image-0.5.3/lib/src/gesture/extended_image_slide_page_route.dart:331:9: Error: No named parameter with the name 'animation'. animation: animation, ^^^^^^^^^../../../../../Programs/flutter/packages/flutter/lib/src/cupertino/route.dart:436:3: Context: Found this candidate, but the arguments don't match. CupertinoFullscreenDialogTransition({ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Compiler message:../../../../../Programs/flutter/.pub-cache/hosted/pub.dartlang.org/extended_image-0.5.3/lib/src/gesture/extended_image_slide_page_route.dart:331:9: Error: No named parameter with the name 'animation'. animation: animation, ^^^^^^^^^../../../../../Programs/flutter/packages/flutter/lib/src/cupertino/route.dart:436:3: Context: Found this candidate, but the arguments don't match. CupertinoFullscreenDialogTransition({ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^Target kernel_snapshot failed: Exception: Errors during snapshot creation: nullbuild failed.

FAILURE: Build failed with an exception.

  • Where:Script 'E:\from F\Programs\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 896

  • What went wrong:Execution failed for task ':app:compileFlutterBuildDebug'.

  • Try:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 1m 3sException: Gradle task assembleDebug failed with exit code 1Exited (sigterm)

I have this problem when i run my project any solution?

解决方案

Check this file: extended_image_slide_page_route.dart at line 331

Your error: " No named parameter with the name 'animation'."

you don't have a parameter called 'animation'.

这篇关于我在运行项目时遇到任何问题吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-31 06:32