Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Supplied action failed with an exception in Flutter

Tags:

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:

  • Flutter 3.0.5
  • channel stable
  • Dart 2.17.6
like image 831
Jinto Joseph Avatar asked Mar 19 '26 07:03

Jinto Joseph


1 Answers

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

like image 94
Jinto Joseph Avatar answered Mar 21 '26 22:03

Jinto Joseph