【发布时间】:2021-04-28 17:26:24
【问题描述】:
我在运行应用程序(flutter run)时收到此错误
event sent after app closed: {id: 0, progressId: null, message: Running "flutter pub get" in de_p_city_guide...}
event sent after app closed: {id: 0, progressId: null, finished: true}
Launching lib\main.dart on Nokia 5 3 in debug mode...
Running Gradle task 'assembleDebug'...
Plugin project :firebase_core_web not found. Please update settings.gradle.
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 'D:\Lets_Go\de_p_city_guide\build\screen\intermediates\compiled_local_resources\debug\out' 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 53s
Exception: Gradle task assembleDebug failed with exit code 1
我试过但没用的解决方案:
-
颤抖干净
-
文件 > 使缓存无效/重新启动...
-
将 (org.gradle.jvmargs=-Xmx4608m) 添加到 gradle.properties
-
添加到 android/app/build.gradle:
机器人{ aaptOptions.cruncherEnabled = 假 aaptOptions.useNewCruncher = false }
-
我从 .../User/.gradle/cashes 中删除了我的现金数据
-
我删除了 .gradle 并重建了项目
任何帮助请在这里
【问题讨论】: