【发布时间】:2020-01-17 07:03:33
【问题描述】:
当我尝试运行颤振应用程序时,它会出现此构建错误
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Could not create service of type DefaultGeneralCompileCaches using
GradleScopeCompileServices.createGeneralCompileCaches().
到目前为止我尝试了什么
- 颤抖干净
- 无效并重新启动
- 试图停止并重新启动 gradle 守护进程
- 将类复制到不同的项目
这是我正在使用的依赖项
dependencies:
flutter:
sdk: flutter
splashscreen:
cupertino_icons: ^0.1.2
english_words: ^3.1.0
http: ^0.12.0+2
progress_dialog: ^1.1.0+1
我很确定这与我当前的项目有关,因为我尝试创建一个新项目并且它正在运行。我在网上搜索了但没有得到任何东西
【问题讨论】:
-
可能是您在
pubspec.yaml文件中导入的依赖项之一存在问题。 -
他们以前工作过。
标签: gradle flutter android-gradle-plugin