flutter

Supplied action failed with an exception in Flutter


Today, I opened my project. While running this debug build, two exceptions came. It doesn’t affect the build or debug build; it runs perfectly. But in the Android folder two errors are shown,

Enter image description here

What is this?

Exception:

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.org\flutter_plugin_android_lifecycle-2.0.6\android.

Versions:


Solution

  • This issue came from the Extensions Language Support for Java by Red Hat:

    Enter image description here

    In the new version of these Extensions it has the above bug.

    That is

    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.org\flutter_plugin_android_lifecycle-2.0.6\android.

    To solve this, I downgraded Extensions Language Support for Java by Red Hat the extensions (1.9.0 to 1.8.0).

    or

    remove/disable the extensions

    enter image description here