当我 运行 设置我的 flutter 项目时,我无法在模拟器或移动设备中 运行 它,它在调试控制台中显示错误

While I am running my flutter project I am unable to run it in emulator or mobile, it is showing error in debug console

当我尝试 运行 我的 flutter 项目时,我无法在模拟器或移动设备中 运行 它,它在调试控制台中显示此错误:

Execution failed for DexingWithClasspathTransform: C:\Users\alian\.gradle\caches\transforms-2\files-2.1\be6d711c57b89887f4ceca287ebaa2f2\jetified-flutter_embedding_debug-1.0.0-241c87ad800beeab545ab867354d4683d5bfb6ce.jar.
Cannot parse result path string: 

* 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 14s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)

您是否尝试删除 C:\Users\alian\.gradle\caches 文件夹并重新运行构建?

然后尝试删除 android 路径中的 Gradle 文件夹,

  • 清理并重建 flutter 的 android 项目并等待构建成功。