Hey Flutter Community!
I’m facing a frustrating issue while trying to run my Flutter project on an Android emulator. The error occurs after adding any new dependencies to the pubspec.yaml
file.
Launching lib\main.dart on sdk gphone64 x86 64 in debug mode...
Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':path_provider_android:compileDebugJavaWithJavac'.
> Could not determine the dependencies of null.
> Cannot query the value of this provider because it has no value available.
BUILD FAILED in 6s
Error: Gradle task assembleDebug failed with exit code 1
The strange part is that I’m not using the path_provider
package in my project, yet this error still occurs every time I add a new dependency. I’ve tried running flutter clean
and flutter pub get
, but the issue persists.
Has anyone encountered this error before or knows a possible solution? Any help would be greatly appreciated!