1

I am developing flutter with VS Code and while compiling I get the following error

FAILURE: Build failed with an exception.

* What went wrong:
Could not create service of type ScriptPluginFactory using BuildScopeServices.createScriptPluginFactory().

Could not create service of type FileHasher using BuildSessionScopeServices.createFileSnapshotter().

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.

then I ran the project with Android Studio but I get a similar error.

What other solution could there be other than starting a new project?

Ali ÜSTÜNEL
  • 183
  • 2
  • 9
  • Does this answer your question? [Gradle Could not create service of type InitScriptHandler using BuildScopeServices.createInitScriptHandler()](https://stackoverflow.com/questions/30840526/gradle-could-not-create-service-of-type-initscripthandler-using-buildscopeservic) – Akif Nov 14 '20 at 15:29
  • 1
    sorry but didn't work – Ali ÜSTÜNEL Nov 14 '20 at 16:12
  • Does this answer your question? [Gradle: Could not not create service of type FileHasher](https://stackoverflow.com/questions/45177977/gradle-could-not-create-service-of-type-filehasher/46094804) – Nuqo Nov 14 '20 at 22:25
  • thanks for your reply. As a solution I manually updated a few packages in the pubspec file and it was fixed, There is an answer on the site, but I guess you need to constantly try – Ali ÜSTÜNEL Nov 15 '20 at 03:34

0 Answers0