Tag Archives: flutter:Could not determine the dependencies of task ‘:app:compileDebugJavaWithJavac’.

[Solved] flutter:Could not determine the dependencies of task ‘:app:compileDebugJavaWithJavac’.

Could not determine the dependencies of task ‘:app:compileDebugJavaWithJavac’.

AILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ‘:app:compileDebugJavaWithJavac’.
> Could not create service of type AnnotationProcessorDetector using JavaGradleScopeServices.createAnnotationProcessorDetector().

Delete the .gradle folder in the directory, then clean and recompile

Note that the .gradle folder here refers to the .gradle in the android directory under the current app.

clean operation is to run “flutter clean” command in the current app root directory