fluttercommunity / fluttercommunity/chewie

FAILURE: Build failed with an exception. What went wrong: Could not determine the dependencies of task ':wakelock_plus:generateReleaseLintModel'.

Open
#892 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
2.1k
Forks
1.1k
Avg merge
6d 8h
Merged PRs (30d)
6

Description

When I build apk app using 'flutter build apk' it shows this error. Does anyone have a solution.

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: build_directory\build\wakelock_plus and C:\Users\admin\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 11s
Running Gradle task 'assembleRelease'... 12.3s
Gradle task assembleRelease failed with exit code 1

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the failure with `flutter build apk` and inspect the Gradle error for `:wakelock_plus:generateReleaseLintModel` and `releaseUnitTestRuntimeClasspath`. Use the reported `wakelock_plus` Android path and the suggested stacktrace output to identify the dependency-root mismatch; done means the release APK build completes successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, dart, flutter
Domain
build-system, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.