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
Similar Posts:
- Flutter run Error: The getter ‘body1’ isn’t defined for the class ‘TextTheme’. – ‘TextTheme’ is from ‘package:flutter/src/material/text_theme.dart’
- How to Solve IDEA Error: “Library source does not match the bytecode for class”
- Flutter: Android dependency ‘com.android.support:support-v4’ has different version …
- SDK location not found. Define location with sdk.dir in the local.properties file or with an AND…
- [Solved] Execution failed for task ‘:app:compileDebugJavaWithJavac’
- [Solved] Flutter – AAPT: error: resource android:attr/dialogCornerRadius not found.
- [Solved] Android Studio Error: Could not initialize class com.android.sdklib.repository.AndroidSdkHandler
- [Solved] Flutter – AAPT: error: resource android:attr/dialogCornerRadiu…
- Could not find com.android.tools.build:gradle:3.3.0.
- [Solved] Android Studio Error: Could not initialize class com.android.sdklib.repository.AndroidSdkHandler