flutter_widget_from_html icon indicating copy to clipboard operation
flutter_widget_from_html copied to clipboard

Could not determine the dependencies of task ':wakelock_plus:generateReleaseLintModel'.

Open Mushfiq1060 opened this issue 1 year ago • 4 comments

When I try to build release apk i got the following error:

Could not determine the dependencies of task ':wakelock_plus:generateReleaseLintModel'.
> Could not resolve all dependencies for configuration ':wakelock_plus:releaseUnitTestRuntimeClasspath'.
   > Could not create task ':wakelock_plus:testDebugUnitTest'.
      > this and base files have different roots: D:\Flutter\app\my_app\build\wakelock_plus and C:\Users\user\AppData\Local\Pub\Cache\hosted\pub.dev\wakelock_plus-1.2.5\android.

Mushfiq1060 avatar May 31 '24 18:05 Mushfiq1060

Are you adding this package to a new project or have you recently updated it to a new version?

daohoangson avatar Jun 02 '24 14:06 daohoangson

For me this is occuring when adding this package to my project

Anuraag93 avatar Jun 07 '24 03:06 Anuraag93

I used flutter_widget_from_html_core: ^0.14.12 package instead of flutter_widget_from_html: ^0.15.0 to fixed this error.

Anuraag93 avatar Jun 07 '24 04:06 Anuraag93

Can you share Flutter version and your pubspec.yaml?

daohoangson avatar Jun 09 '24 12:06 daohoangson

Anyone I have same issue

Mehdi-Yanat avatar Dec 17 '24 00:12 Mehdi-Yanat

This issue was resolved for me by copying the project to the C drive and then running the following commands in the command line: flutter clean flutter pub get flutter build apk

MobinDev avatar Jan 12 '25 14:01 MobinDev

https://aarktechub.com/blogs/fix-flutter-dependencies-error-chewie-wakelock-plus

maotou316 avatar Feb 09 '25 05:02 maotou316

@maotou316 amazing, thanks for sharing. I came across other errors due to same reason: project location. Works fine when it's on C drive and does not if it's on other drives. Not sure if any type of Symlinking would work as workaround. I have not tried but will when get chance

markosole avatar Feb 13 '25 22:02 markosole

FAILURE: Build failed with an exception.

  • What went wrong: Could not determine the dependencies of task ':wakelock_plus:generateReleaseLintModel'.

Could not resolve all dependencies for configuration ':wakelock_plus:releaseUnitTestRuntimeClasspath'. Could not create task ':wakelock_plus:testDebugUnitTest'. > this and base files have different roots: D:\1. Group Project\flutex_admin\build\wakelock_plus and C:\Users\AppData\Local\Pub\Cache\hosted\pub.dev\wakelock_plus-1.2.10\android.

  • Try:

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. Get more help at https://help.gradle.org.

BUILD FAILED in 3s Running Gradle task 'assembleRelease'... 4.5s Gradle task assembleRelease failed with exit code 1

I can't fix it Pls help me

PozzTong avatar Mar 04 '25 10:03 PozzTong