Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

problem when build a Gradle (Could not create task ':path_provider_android:generateDebugUnitTestConfig'). in flutter for android

every time I want to build the android project in flutter shows this message:

Could not create task ':path_provider_android:generateDebugUnitTestConfig'.
this and base files have different roots: E:\apps\our_class\build\path_provider_android and F:\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.9\android.

I tried many versions of Gradel, but still same problem

like image 607
Osama Mohammed Avatar asked Dec 09 '25 17:12

Osama Mohammed


1 Answers

This issue is a pain for me I normally fix this issue by doing the following steps

  1. run flutter clean / delete the build folder
  2. Build the project on Android studio
  3. run flutter pub get
like image 189
Shashaank Kota Avatar answered Dec 12 '25 08:12

Shashaank Kota



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!