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