Execution optimizations have been disabled for task ':app:compressDebugAssets' to ensure correctness due to the following reasons:

1,210 views
Skip to first unread message

Bened

unread,
Sep 16, 2021, 7:09:13 PM9/16/21
to Flutter Development (flutter-dev)
Whatever is the Gradle, I am noticing this message, and I do not know too much how can I avoid it? I do not understand what to do

[        ]   - Gradle detected a problem with the following location: 'C:xxxxxx\build\app\intermediates\merged_assets\debug\out'. 
Reason: Task ':app:compressDebugAssets' uses this output of task ':app:copyFlutterAssetsDebug' without declaring an explicit or implicit dependency. 
This can lead to incorrect results being produced, depending on what order the tasks are executed. 
[ +296 ms] > Task :app:packageDebug UP-TO-DATE
[+2691 ms] > Task :app:assembleDebug
[        ] Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
[        ] You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
[        ] Execution optimizations have been disabled for 1 invalid unit(s) of work during this build to ensure correctness.
[        ] Please consult deprecation warnings for more details.
[        ] BUILD SUCCESSFUL in 13s

Sebastian Haberey

unread,
Sep 21, 2021, 6:14:00 AM9/21/21
to Flutter Development (flutter-dev)
I am experiencing the same when executing Flutter integration tests on an Android device as described here. Command:

./gradlew app:connectedAndroidTest -Ptarget=`pwd`/../integration_test/nsd_test.dart
Reply all
Reply to author
Forward
0 new messages