wakelock_plus icon indicating copy to clipboard operation
wakelock_plus copied to clipboard

Could not create task ':wakelock_plus:testDebugUnitTest'

Open AbolfazlVakili0 opened this issue 10 months ago • 6 comments

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:\rahgan\build\wakelock_plus and C:\Users\abolf\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 1s Running Gradle task 'assembleRelease'... 2,417ms Gradle task assembleRelease failed with exit code 1 Process finished with exit code 1

AbolfazlVakili0 avatar Jan 19 '25 02:01 AbolfazlVakili0

Hi I am having same issue, and I don't even use package in my app which is strange thing. Anyone have any clue?

markosole avatar Jan 22 '25 04:01 markosole

Hi i have a same issue any one have a solution.

hkidevone avatar Jan 27 '25 05:01 hkidevone

@hkidevone which package(s) are you using? Check this out https://stackoverflow.com/a/79379519/6342456 and my findings. I was using package for html and switched to other package that does same/similar thing.

Follow procedure from URL and share your results here.

markosole avatar Feb 13 '25 22:02 markosole

#84 Try this

pys200603027 avatar Feb 20 '25 12:02 pys200603027

#84 Try this

This solved my problem

Willian199 avatar Feb 20 '25 18:02 Willian199

dependency_overrides: wakelock_plus: path: packages/wakelock_plus wakelock_plus_platform_interface: path: packages/wakelock_plus_platform_interface

copy these packages from local/pub/cache etc and paste in your project new dir and paste in it and override dependency

This solved my problem

nlscomputer04 avatar Jun 28 '25 07:06 nlscomputer04