samples
samples copied to clipboard
[add-to-app] Build failed with an exception.
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:
- Declare task ':flutter:copyFlutterAssetsDebug' as an input of ':flutter:mergeDebugAndroidTestAssets'.
- Declare an explicit dependency on ':flutter:copyFlutterAssetsDebug' from ':flutter:mergeDebugAndroidTestAssets' using Task#dependsOn.
- Declare an explicit dependency on ':flutter:copyFlutterAssetsDebug' from ':flutter:mergeDebugAndroidTestAssets' using Task#mustRunAfter.
how and where to fix it?
PTAL @ericwindmill