What went wrong:
A problem occurred configuring project ':background_locator'.
Could not load compiled classes for build file 'C:\flutter.pub-cache\hosted\pub.dartlang.org\background_locator-1.6.12\android\build.gradle' from cache.
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.
While build the app get an error like
FAILURE: Build failed with an exception.
What went wrong: A problem occurred configuring project ':background_locator'.
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 18s Exception: Gradle task assembleDebug failed with exit code 1
How to resolve this issue.