-
Notifications
You must be signed in to change notification settings - Fork 186
Closed
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work listbugSomething isn't workingSomething isn't working
Description
Steps to reproduce
Apps that use flavors don't work anymore (only tried android). Getting this error:
FLUTTER_APP_FLAVOR is used by the framework and cannot be set using --dart-define or --dart-define-from-file
tried every test command, If it works for you please let me know your test command.
Actual results
FLUTTER_APP_FLAVOR is used by the framework and cannot be set using --dart-define or --dart-define-from-file
Logs
Logs
Benji@Benjis-Macbook-Pro vepo_front_end % patrol test --flavor development -d emulator-5556 --target integration_test/contribute/add_test.dart --dart-define-from-file lib/config/environment_strings_dev.json
• Building apk with entrypoint test_bundle.dart...
Target kernel_snapshot_program failed: Error: FLUTTER_APP_FLAVOR is used by the framework and cannot be set using --dart-define or --dart-define-from-file
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDevelopmentDebug'.
> Process 'command '/Users/Benji/Development/flutter/bin/flutter'' finished with non-zero exit value 1
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUILD FAILED in 3s
✗ Failed to build apk with entrypoint test_bundle.dart (Gradle build failed with code 1) (3.4s)
Exception: Gradle build failed with code 1
See the logs above to learn what happened. Also consider running with --verbose. If the logs still aren't useful, then it's a bug - please report it.
Exception: Gradle build failed with code 1
#0 AndroidTestBackend.build.<anonymous closure> (package:patrol_cli/src/android/android_test_backend.dart:81:9)
<asynchronous suspension>
Patrol version
patrol: ^3.15.1
Patrol Doctor output
Patrol Doctor output
<!-- Replace this line with your logs. Do not remove the backticks! -->
Flutter Doctor output
Flutter Doctor output
<!-- Replace this line with your logs. Do not remove the backticks! -->
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work listbugSomething isn't workingSomething isn't working