Android 颤振运行:任务';的执行失败:app:processDebugResources';
我正在学习颤振,并被这个错误困扰了3天Android 颤振运行:任务';的执行失败:app:processDebugResources';,android,flutter,gradle,dart,Android,Flutter,Gradle,Dart,我正在学习颤振,并被这个错误困扰了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 wen
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
尝试
然后
删除并创建了一个新的android仿真器。
仍然没有结果。
任何帮助都将不胜感激
已解决
仍然无法首先找到问题的根源请尝试手动删除
C:\expense\u planner\build
目录。重新启动操作系统目录被锁定。我已经尝试过了。仍然是同一个问题。可能一些Butter构建工具没有对目录的写访问权限。尝试将项目移动到C:\Users\
flutter clean
flutter run
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...