I'm encountering an error while trying to build my Flutter project for Android. The error message indicates that there is a mismatch in the roots for the flutter_plugin_android_lifecycle
The supplied phased action failed with an exception. Could not create task ':flutter_plugin_android_lifecycle:compileDebugUnitTestSources'. this and base files have different roots: D:\factory\spotless\build\flutter_plugin_android_lifecycle and C:\src\flutter.pub-cache\hosted\pub.dartlang\flutter_plugin_android_lifecycle-2.0.6\android.
Attached image shows the error about flutter_plugin_android_lifecycle root mismatch during build—any help fixing this