Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failed with an exception. #2470

Open
admsasha opened this issue Oct 11, 2024 · 1 comment
Open

Build failed with an exception. #2470

admsasha opened this issue Oct 11, 2024 · 1 comment

Comments

@admsasha
Copy link

I'm trying to build samples/add_to_app/android_view

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem was found with the configuration of task ':flutter:mergeDebugAndroidTestAssets' (type 'MergeSourceSetFolders').
    • Gradle detected a problem with the following location: '/home/sasha/AndroidStudioProjects/test/flutter/flutter_samples/add_to_app/android_view/flutter_module_using_plugin/.android/Flutter/build/intermediates/library_assets/debug/packageDebugAssets/out'.

      Reason: Task ':flutter:mergeDebugAndroidTestAssets' uses this output of task ':flutter:copyFlutterAssetsDebug' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.

      Possible solutions:

      1. Declare task ':flutter:copyFlutterAssetsDebug' as an input of ':flutter:mergeDebugAndroidTestAssets'.
      2. Declare an explicit dependency on ':flutter:copyFlutterAssetsDebug' from ':flutter:mergeDebugAndroidTestAssets' using Task#dependsOn.
      3. Declare an explicit dependency on ':flutter:copyFlutterAssetsDebug' from ':flutter:mergeDebugAndroidTestAssets' using Task#mustRunAfter.

how and where to fix it?

@domesticmouse
Copy link
Contributor

PTAL @ericwindmill

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants