gpt4 book ai didi

android - Flutter运行:任务 ':app:processDebugResources'的执行失败

转载 作者:行者123 更新时间:2023-12-03 05:20:29 24 4
gpt4 key购买 nike

我正在学习 flutter ,并坚持了3天的错误。

flutter run    
Running "flutter pub get" in expense_planner...
Launching lib\main.dart on AOSP on IA Emulator in debug mode...
Running Gradle task 'assembleDebug'...

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Path 'C:\expense_planner\build\app\intermediates\res\merged\debug' is not a readable directory.

* 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 16s
Exception: Gradle task assembleDebug failed with exit code 1
试过了
flutter clean
然后
flutter run
删除并创建了一个新的android模拟器。
仍然没有结果。
任何帮助,将不胜感激。
Link to the flutter code

最佳答案

解决了

  • 删除了expense_planner文件夹
  • 然后,从GitHub
  • 克隆项目
    flutter run
    Launching lib\main.dart on AOSP on IA Emulator in debug mode...
    ✓ Built build\app\outputs\flutter-apk\app-debug.apk.
    Installing build\app\outputs\flutter-apk\app.apk...

    仍然仍然无法首先找到问题的根源

    关于android - Flutter运行:任务 ':app:processDebugResources'的执行失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63757940/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com