Flutter assets will be downloaded from https:// storage.flutter-io.cn.Make sure you trust this source!Launching lib\main.dart on XXXXXX in debug mode. . .
FAILURE:Build failed with an exception.
* What went wrong:
Execution failed for task ' :app: packageDebug'.
> Sevaral variant outputs are configured to use the same file name "resources-debug.ap_", filters : SINGLE:SINGLE
* 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 32s
Exception: Gradle task assembleDebug failed with exit code 1Exited (sigterm)

解决办法:
运行 :flutter clean

OK!!!
在尝试在XXXXXX设备上以调试模式运行Flutter应用时遇到问题,Gradle构建失败,错误提示为多个变体输出配置使用了相同的文件名。解决方法是执行`flutter clean`清理项目。执行此命令后,成功解决问题,应用正常启动。
3904

被折叠的 条评论
为什么被折叠?



