Repository: flutter
Issue: [flutter_tool] gradle error incorrect productFlavors
Labels: tool,t: gradle,has reproducible steps,P2,found in release: 3.10,found in release: 3.11,team-tool,triaged-tool

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Steps to reproduce

1. Clone the sample project at https://github.com/felangel/flutter_flavors_bug
1. Try to run the project via `flutter run --flavor development`
1. Observe a gradle error which states the supported flavors are:
  - `development, developmentexternal, developmentinternal, production, productionexternal, productioninternal`

This results in the developer being confused because the error tells them to provide `--flavor` with one of the above flavors which is what the developer already did.

### Expected results

1. Clone the sample project at https://github.com/felangel/flutter_flavors_bug
1. Try to run the project via `flutter run --flavor development`
1. Observe a gradle error which states the supported flavors are:
  - `developmentexternal, developmentinternal, productionexternal, productioninternal`

Which would clearly indicate to the developer that the flavor they provided is not a valid flavor.

### Actual results

```
$ flutter run --flavor development                                     
Using hardware rendering with device sdk gphone64 arm64. If you notice graphics artifacts, consider enabling software rendering with
"--enable-software-rendering".
Launching lib/main.dart on sdk gphone64 arm64 in debug mode...

FAILURE: Build failed with an exception.

* What went wrong:
Task 'assembleDevelopmentDebug' not found in root project 'android'.

* Try:
> Run gradlew tasks to get a list of available tasks.
> 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 797ms
Running Gradle task 'assembleDevelopmentDebug'...                1,287ms

┌─ Flutter Fix ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ [!]  Gradle project does not define a task suitable for the requested build.                                                          │
│                                                                                                                                       │
│ The /Users/felix/Desktop/flutter_flavors_bug/android/app/build.gradle file defines product flavors: development, developmentexternal, │
│ developmentinternal, production, productionexternal, productioninternal. You must specify a --flavor option to select one of them.    │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Exception: Gradle task assembleDevelopmentDebug failed with exit code 1
```

### Code sample

See sample project at https://github.com/felangel/flutter_flavors_bug

### Screenshots or Video

_No response_

### Logs

<details><summary>Logs</summary>

```console
[   +1 ms] executing: [/Users/felix/Development/github.com/flutter/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +20 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] 434b81f1a58b8528299a63ae7c3ded2aa519e3c9
[        ] executing: [/Users/felix/Development/github.com/flutter/flutter/] git tag --points-at 434b81f1a58b8528299a63ae7c3ded2aa519e3c9
[  +35 ms] Exit code 0 from: git tag --points-at 434b81f1a58b8528299a63ae7c3ded2aa519e3c9
[        ] executing: [/Users/felix/Development/github.com/flutter/flutter/] git describe --match *.*.* --long --tags 434b81f1a58b8528299a63ae7c3ded2aa519e3c9
[  +34 ms] Exit code 0 from: git describe --match *.*.* --long --tags 434b81f1a58b8528299a63ae7c3ded2aa519e3c9
[        ] 3.11.0-5.0.pre-142-g434b81f1a5
[   +1 ms] executing: [/Users/felix/Development/github.com/flutter/flutter/] git rev-parse --abbrev-ref HEAD
[   +9 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] master
[        ] executing: sw_vers -productName
[   +7 ms] Exit code 0 from: sw_vers -productName
[        ] macOS
[        ] executing: sw_vers -productVersion
[   +5 ms] Exit code 0 from: sw_vers -productVersion
[        ] 13.0
[        ] executing: sw_vers -buildVersion
[   +5 ms] Exit code 0 from: sw_vers -buildVersion
[        ] 22A8380
[        ] executing: uname -m
[   +2 ms] Exit code 0 from: uname -m
[        ] arm64
[   +2 ms] executing: sysctl hw.optional.arm64
[   +2 ms] Exit code 0 from: sysctl hw.optional.arm64
[        ] hw.optional.arm64: 1
[   +3 ms] executing: [/Users/felix/Development/github.com/flutter/flutter/] git rev-parse --abbrev-ref --symbolic @{upstream}
[   +8 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{upstream}
[        ] origin/master
[        ] executing: [/Users/felix/Development/github.com/flutter/flutter/] git ls-remote --get-url origin
[   +8 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] git@github.com:flutter/flutter.git
[  +36 ms] executing: sysctl hw.optional.arm64
[   +2 ms] Exit code 0 from: sysctl hw.optional.arm64
[        ] hw.optional.arm64: 1
[        ] executing: /usr/bin/arch -arm64e xcrun xcodebuild -version
[ +114 ms] Exit code 0 from: /usr/bin/arch -arm64e xcrun xcodebuild -version
[        ] Xcode 14.2
           Build version 14C18
[   +1 ms] executing: /usr/bin/arch -arm64e xcrun xcdevice list --timeout 5
[   +2 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] Artifact Instance of 'LegacyCanvasKitRemover' is not required, skipping update.
[        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +18 ms] executing: /Users/felix/Library/Android/sdk/platform-tools/adb devices -l
[        ] executing: /usr/bin/arch -arm64e xcrun xcdevice list --timeout 2
[        ] /usr/bin/arch -arm64e xcrun simctl list devices booted iOS --json
[        ] executing: /usr/bin/arch -arm64e xcrun simctl list devices booted iOS --json
[   +1 ms] executing: /usr/bin/arch -arm64e xcrun simctl list devices booted
[  +84 ms] Exit code 0 from: /usr/bin/arch -arm64e xcrun simctl list devices booted
[   +2 ms] /Users/felix/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell getprop
[  +76 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +60 ms] Skipping pub get: version match.
[  +40 ms] Generating /Users/felix/Desktop/flutter_flavors_bug/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[  +18 ms] ro.hardware = ranchu
[   +4 ms] Using hardware rendering with device sdk gphone64 arm64. If you notice graphics artifacts, consider enabling software rendering with "--enable-software-rendering".
[  +13 ms] Initializing file store
[   +3 ms] Skipping target: gen_localizations
[   +1 ms] gen_dart_plugin_registrant: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs have updated contents: /Users/felix/Desktop/flutter_flavors_bug/.dart_tool/package_config_subset}
[  +10 ms] gen_dart_plugin_registrant: Complete
[        ] Skipping target: _composite
[   +1 ms] complete
[   +2 ms] Launching lib/main.dart on sdk gphone64 arm64 in debug mode...
[   +1 ms] /Users/felix/Development/github.com/flutter/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev /Users/felix/Development/github.com/flutter/flutter/bin/cache/dart-sdk/bin/snapshots/frontend_server.dart.snapshot --sdk-root /Users/felix/Development/github.com/flutter/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --target=flutter --experimental-emit-debug-metadata -DFLUTTER_WEB_AUTO_DETECT=true -DFLUTTER_WEB_CANVASKIT_URL=https://www.gstatic.com/flutter-canvaskit/237c60185acebe6974780b8c1380e44869bf7cf3/ --output-dill /var/folders/rc/7jpj4zgs70s274kn5pbfty080000gn/T/flutter_tools.MxPfJD/flutter_tool.KWiun3/app.dill --packages /Users/felix/Desktop/flutter_flavors_bug/.dart_tool/package_config.json -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts --track-widget-creation --filesystem-scheme org-dartlang-root --initialize-from-dill build/28f3349e334cef575d6320e7472efd85.cache.dill.track.dill --verbosity=error --flutter-widget-cache --enable-experiment=alternative-invalidation-strategy
[   +4 ms] executing: /Users/felix/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell -x logcat -v time -t 1
[   +8 ms] <- compile package:flutter_flavors_bug/main.dart
[ +156 ms] --------- beginning of main
           05-18 13:52:25.892 D/EGL_emulation(  850): app_time_stats: avg=20043.93ms min=20043.93ms max=20043.93ms count=1
[   +5 ms] executing: /Users/felix/Library/Android/sdk/platform-tools/adb version
[   +9 ms] Android Debug Bridge version 1.0.41
           Version 34.0.0-9570255
           Installed as /Users/felix/Library/Android/sdk/platform-tools/adb
[   +1 ms] executing: /Users/felix/Library/Android/sdk/platform-tools/adb start-server
[  +12 ms] Building APK
[  +55 ms] executing: /usr/bin/plutil -convert xml1 -o - /Applications/Android Studio.app/Contents/Info.plist
[   +9 ms] Exit code 0 from: /usr/bin/plutil -convert xml1 -o - /Applications/Android Studio.app/Contents/Info.plist
[        ] <?xml version="1.0" encoding="UTF-8"?>
           <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
           <plist version="1.0">
           <dict>
           	<key>CFBundleDevelopmentRegion</key>
           	<string>English</string>
           	<key>CFBundleDocumentTypes</key>
           	<array>
           		<dict>
           			<key>CFBundleTypeExtensions</key>
           			<array>
           				<string>ipr</string>
           			</array>
           			<key>CFBundleTypeIconFile</key>
           			<string>studio.icns</string>
           			<key>CFBundleTypeName</key>
           			<string>Android Studio Project File</string>
           			<key>CFBundleTypeRole</key>
           			<string>Editor</string>
           		</dict>
           		<dict>
           			<key>CFBundleTypeExtensions</key>
           			<array>
           				<string>*</string>
           			</array>
           			<key>CFBundleTypeName</key>
           			<string>All documents</string>
           			<key>CFBundleTypeOSTypes</key>
           			<array>
           				<string>****</string>
           			</array>
           			<key>CFBundleTypeRole</key>
           			<string>Editor</string>
           			<key>LSTypeIsPackage</key>
           			<false/>
           		</dict>
           	</array>
           	<key>CFBundleExecutable</key>
           	<string>studio</string>
           	<key>CFBundleGetInfoString</key>
           	<string>Android Studio 2022.1, build AI-221.6008.13.2211.9514443. Copyright JetBrains s.r.o., (c) 2000-2022</string>
           	<key>CFBundleIconFile</key>
           	<string>studio.icns</string>
           	<key>CFBundleIdentifier</key>
           	<string>com.google.android.studio</string>
           	<key>CFBundleInfoDictionaryVersion</key>
           	<string>6.0</string>
           	<key>CFBundleName</key>
           	<string>Android Studio</string>
           	<key>CFBundlePackageType</key>
           	<string>APPL</string>
           	<key>CFBundleShortVersionString</key>
           	<string>2022.1</string>
           	<key>CFBundleSignature</key>
           	<string>????</string>
           	<key>CFBundleURLTypes</key>
           	<array>
           		<dict>
           			<key>CFBundleTypeRole</key>
           			<string>Editor</string>
           			<key>CFBundleURLName</key>
           			<string>Stacktrace</string>
           			<key>CFBundleURLSchemes</key>
           			<array>
           				<string>idea</string>
           			</array>
           		</dict>
           	</array>
           	<key>CFBundleVersion</key>
           	<string>AI-221.6008.13.2211.9514443</string>
           	<key>JVMOptions</key>
           	<dict>
           		<key>ClassPath</key>
           		<string>$APP_PACKAGE/Contents/lib/util.jar:$APP_PACKAGE/Contents/lib/app.jar:$APP_PACKAGE/Contents/lib/3rd-party-rt.jar:$APP_PACKAGE/Contents/lib/jna.jar:$APP_PACKAGE/Contents/lib/platform-statistics-devkit.jar:$APP_PACKAGE/Contents/lib/jps-model.jar:$APP_PACKAGE/Contents/lib/rd-core.jar:$APP_PACKAGE/Contents/lib/rd-framework.jar:$APP_PACKAGE/Contents/lib/stats.jar:$APP_PACKAGE/Contents/lib/protobuf.jar:$APP_PACKAGE/Contents/lib/external-system-rt.jar:$APP_PACKAGE/Contents/lib/forms_rt.jar:$APP_PACKAGE/Contents/lib/intellij-test-discovery.jar:$APP_PACKAGE/Contents/lib/rd-swing.jar:$APP_PACKAGE/Contents/lib/annotations.jar:$APP_PACKAGE/Contents/lib/groovy.jar:$APP_PACKAGE/Contents/lib/annotations-java5.jar:$APP_PACKAGE/Contents/lib/byte-buddy-agent.jar:$APP_PACKAGE/Contents/lib/error-prone-annotations.jar:$APP_PACKAGE/Contents/lib/externalProcess-rt.jar:$APP_PACKAGE/Contents/lib/grpc-netty-shaded.jar:$APP_PACKAGE/Contents/lib/idea_rt.jar:$APP_PACKAGE/Contents/lib/intellij-coverage-agent-1.0.656.jar:$APP_PACKAGE/Contents/lib/junit.jar:$APP_PACKAGE/Contents/lib/junit4.jar:$APP_PACKAGE/Contents/lib/lz4-java.jar:$APP_PACKAGE/Contents/lib/platform-objectSerializer-annotations.jar:$APP_PACKAGE/Contents/lib/pty4j.jar:$APP_PACKAGE/Contents/lib/rd-text.jar:$APP_PACKAGE/Contents/lib/resources.jar:$APP_PACKAGE/Contents/lib/util_rt.jar:$APP_PACKAGE/Contents/lib/winp.jar:$APP_PACKAGE/Contents/lib/ant/lib/ant.jar</string>
           		<key>JVMVersion</key>
           		<string>1.8*,1.8+</string>
           		<key>MainClass</key>
           		<string>com.intellij.idea.Main</string>
           		<key>Options</key>
           		<array/>
           		<key>Properties</key>
           		<dict>
           			<key>idea.executable</key>
           			<string>studio</string>
           			<key>idea.home.path</key>
           			<string>$APP_PACKAGE/Contents</string>
           			<key>idea.jre.check</key>
           			<string>true</string>
           			<key>idea.paths.selector</key>
           			<string>AndroidStudio2022.1</string>
           			<key>idea.platform.prefix</key>
           			<string>AndroidStudio</string>
           			<key>idea.strict.classpath</key>
           			<string>true</string>
           			<key>idea.vendor.name</key>
           			<string>Google</string>
           			<key>java.system.class.loader</key>
           			<string>com.intellij.util.lang.PathClassLoader</string>
           			<key>splash</key>
           			<string>true</string>
           		</dict>
           	</dict>
           	<key>LSApplicationCategoryType</key>
           	<string>public.app-category.developer-tools</string>
           	<key>LSArchitecturePriority</key>
           	<array>
           		<string>arm64</string>
           		<string>x86_64</string>
           	</array>
           	<key>LSMinimumSystemVersion</key>
           	<string>10.8</string>
           	<key>LSRequiresNativeExecution</key>
           	<string>YES</string>
           	<key>NSBluetoothAlwaysUsageDescription</key>
           	<string>An application in Android Studio requests access to Bluetooth.</string>
           	<key>NSCameraUsageDescription</key>
           	<string>An application in Android Studio requests access to the device's camera.</string>
           	<key>NSDesktopFolderUsageDescription</key>
           	<string>An application in Android Studio requests access to the user's Desktop folder.</string>
           	<key>NSDocumentsFolderUsageDescription</key>
           	<string>An application in Android Studio requests access to the user's Documents folder.</string>
           	<key>NSDownloadsFolderUsageDescription</key>
           	<string>An application in Android Studio requests access to the user's Downloads folder.</string>
           	<key>NSHighResolutionCapable</key>
           	<true/>
           	<key>NSLocationUsageDescription</key>
           	<string>An application in Android Studio requests access to the user's location information.</string>
           	<key>NSMicrophoneUsageDescription</key>
           	<string>An application in Android Studio requests access to the device's microphone.</string>
           	<key>NSNetworkVolumesUsageDescription</key>
           	<string>An application in Android Studio requests access to files on a network volume.</string>
           	<key>NSRemovableVolumesUsageDescription</key>
           	<string>An application in Android Studio requests access to files on a removable volume.</string>
           	<key>NSSupportsAutomaticGraphicsSwitching</key>
           	<true/>
           </dict>
           </plist>
[   +6 ms] executing: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java -version
[  +54 ms] Exit code 0 from: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java -version
[        ] openjdk version "11.0.15" 2022-04-19
           OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)
           OpenJDK 64-Bit Server VM (build 11.0.15+0-b2043.56-8887301, mixed mode)
[   +5 ms] Using Android Studio's java.
[        ] Using Android Studio's java.
[        ] executing: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java --version
[  +64 ms] Exit code 0 from: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java --version
[        ] openjdk 11.0.15 2022-04-19
           OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)
           OpenJDK 64-Bit Server VM (build 11.0.15+0-b2043.56-8887301, mixed mode)
[   +1 ms] Version of Java is different than impacted version, no migration attempted.
[   +5 ms] Using gradle from /Users/felix/Desktop/flutter_flavors_bug/android/gradlew.
[   +5 ms] Running Gradle task 'assembleDevelopmentDebug'...
[   +3 ms] Using Android Studio's java.
[        ] executing: [/Users/felix/Desktop/flutter_flavors_bug/android/] /Users/felix/Desktop/flutter_flavors_bug/android/gradlew --full-stacktrace --info -Pverbose=true -Ptarget-platform=android-arm64 -Ptarget=/Users/felix/Desktop/flutter_flavors_bug/lib/main.dart -Pbase-application-name=android.app.Application -Pdart-defines=RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ==,RkxVVFRFUl9XRUJfQ0FOVkFTS0lUX1VSTD1odHRwczovL3d3dy5nc3RhdGljLmNvbS9mbHV0dGVyLWNhbnZhc2tpdC8yMzdjNjAxODVhY2ViZTY5NzQ3ODBiOGMxMzgwZTQ0ODY5YmY3Y2YzLw== -Pdart-obfuscation=false -Ptrack-widget-creation=true -Ptree-shake-icons=false -Pfilesystem-scheme=org-dartlang-root assembleDevelopmentDebug
[ +305 ms] Initialized native services in: /Users/felix/.gradle/native
[        ] Initialized jansi services in: /Users/felix/.gradle/native
[ +110 ms] Found daemon DaemonInfo{pid=17392, address=[ecf39f09-2e04-49ce-9b69-c3ed700f7348 port:60845, addresses:[/127.0.0.1]], state=Idle, lastBusy=1684434658935, context=DefaultDaemonContext[uid=13e49297-2fd9-4391-afd5-a80a7271e9be,javaHome=/opt/homebrew/Cellar/openjdk/20/libexec/openjdk.jdk/Contents/Home,daemonRegistryDir=/Users/felix/.gradle/daemon,pid=17392,idleTimeout=10800000,priority=NORMAL,daemonOpts=--add-opens,java.base/java.util=ALL-UNNAMED,--add-opens,java.base/java.lang=ALL-UNNAMED,--add-opens,java.base/java.lang.invoke=ALL-UNNAMED,--add-opens,java.base/java.util=ALL-UNNAMED,--add-opens,java.prefs/java.util.prefs=ALL-UNNAMED,--add-opens,java.prefs/java.util.prefs=ALL-UNNAMED,--add-opens,java.base/java.nio.charset=ALL-UNNAMED,--add-opens,java.base/java.net=ALL-UNNAMED,--add-opens,java.base/java.util.concurrent.atomic=ALL-UNNAMED,-Xmx1536M,-Dfile.encoding=utf8,-Duser.country=US,-Duser.language=en,-Duser.variant]} however its context does not match the desired criteria.
[        ] Java home is different.
[        ] Wanted: DefaultDaemonContext[uid=null,javaHome=/Applications/Android Studio.app/Contents/jbr/Contents/Home,daemonRegistryDir=/Users/felix/.gradle/daemon,pid=70795,idleTimeout=null,priority=NORMAL,daemonOpts=--add-opens,java.base/java.util=ALL-UNNAMED,--add-opens,java.base/java.lang=ALL-UNNAMED,--add-opens,java.base/java.lang.invoke=ALL-UNNAMED,--add-opens,java.base/java.util=ALL-UNNAMED,--add-opens,java.prefs/java.util.prefs=ALL-UNNAMED,--add-opens,java.prefs/java.util.prefs=ALL-UNNAMED,--add-opens,java.base/java.nio.charset=ALL-UNNAMED,--add-opens,java.base/java.net=ALL-UNNAMED,--add-opens,java.base/java.util.concurrent.atomic=ALL-UNNAMED,-Xmx1536M,-Dfile.encoding=UTF-8,-Duser.country=US,-Duser.language=en,-Duser.variant]
[        ] Actual: DefaultDaemonContext[uid=13e49297-2fd9-4391-afd5-a80a7271e9be,javaHome=/opt/homebrew/Cellar/openjdk/20/libexec/openjdk.jdk/Contents/Home,daemonRegistryDir=/Users/felix/.gradle/daemon,pid=17392,idleTimeout=10800000,priority=NORMAL,daemonOpts=--add-opens,java.base/java.util=ALL-UNNAMED,--add-opens,java.base/java.lang=ALL-UNNAMED,--add-opens,java.base/java.lang.invoke=ALL-UNNAMED,--add-opens,java.base/java.util=ALL-UNNAMED,--add-opens,java.prefs/java.util.prefs=ALL-UNNAMED,--add-opens,java.prefs/java.util.prefs=ALL-UNNAMED,--add-opens,java.base/java.nio.charset=ALL-UNNAMED,--add-opens,java.base/java.net=ALL-UNNAMED,--add-opens,java.base/java.util.concurrent.atomic=ALL-UNNAMED,-Xmx1536M,-Dfile.encoding=utf8,-Duser.country=US,-Duser.language=en,-Duser.variant]
[        ]   Looking for a different daemon...
[  +98 ms] The client will now receive all logging from the daemon (pid: 68522). The daemon log file: /Users/felix/.gradle/daemon/7.5/daemon-68522.out.log
[        ] Starting 7th build in daemon [uptime: 11 mins 19.044 secs, performance: 98%]
[        ] Using 12 worker leases.
[        ] Now considering [/Users/felix/Desktop/flutter_flavors_bug/android, /Users/felix/Development/github.com/flutter/flutter/packages/flutter_tools/gradle] as hierarchies to watch
[        ] Watching the file system is configured to be enabled if available
[        ] File system watching is active
[        ] Starting Build
[        ] Settings evaluated using settings file '/Users/felix/Desktop/flutter_flavors_bug/android/settings.gradle'.
[        ] Now considering [/Users/felix/Development/github.com/flutter/flutter/packages/flutter_tools/gradle, /Users/felix/Desktop/flutter_flavors_bug/android] as hierarchies to watch
[        ] Projects loaded. Root project using build file '/Users/felix/Desktop/flutter_flavors_bug/android/build.gradle'.
[        ] Included projects: [root project 'android', project ':app']
[ +106 ms] > Configure project :gradle
[        ] Evaluating project ':gradle' using build file '/Users/felix/Development/github.com/flutter/flutter/packages/flutter_tools/gradle/build.gradle.kts'.
[        ] Caching disabled for Kotlin DSL accessors for project ':gradle' because:
[        ]   Build cache is disabled
[        ] Skipping Kotlin DSL accessors for project ':gradle' as it is up-to-date.
[        ] file or directory '/Users/felix/Development/github.com/flutter/flutter/packages/flutter_tools/gradle/src/main/resources', not found
[        ] file or directory '/Users/felix/Development/github.com/flutter/flutter/packages/flutter_tools/gradle/src/main/java', not found
[        ] Resolve mutations for :gradle:extractPluginRequests (Thread[Execution worker,5,main]) started.
[        ] Resolve mutations for :gradle:extractPluginRequests (Thread[Execution worker,5,main]) completed. Took 0.0 secs.
[        ] :gradle:extractPluginRequests (Thread[Execution worker Thread 2,5,main]) started.
[        ] > Task :gradle:extractPluginRequests NO-SOURCE
[        ] Skipping task ':gradle:extractPluginRequests' as it has no source files and no previous output files.
[        ] :gradle:extractPluginRequests (Thread[Execution worker Thread 2,5,main]) completed. Took 0.001 secs.
[        ] Resolve mutations for :gradle:generatePluginAdapters (Thread[Execution worker,5,main]) started.
[        ] Resolve mutations for :gradle:generatePluginAdapters (Thread[Execution worker,5,main]) completed. Took 0.0 secs.
[        ] :gradle:generatePluginAdapters (Thread[Execution worker Thread 3,5,main]) started.
[        ] > Task :gradle:generatePluginAdapters UP-TO-DATE
[        ] Caching disabled for task ':gradle:generatePluginAdapters' because:
[        ]   Build cache is disabled
[        ] Skipping task ':gradle:generatePluginAdapters' as it is up-to-date.
[        ] :gradle:generatePluginAdapters (Thread[Execution worker Thread 3,5,main]) completed. Took 0.002 secs.
[        ] Resolve mutations for :gradle:compileJava (Thread[Execution worker Thread 2,5,main]) started.
[        ] Resolve mutations for :gradle:compileJava (Thread[Execution worker Thread 2,5,main]) completed. Took 0.0 secs.
[        ] :gradle:compileJava (Thread[Execution worker Thread 3,5,main]) started.
[        ] > Task :gradle:compileJava NO-SOURCE
[        ] Skipping task ':gradle:compileJava' as it has no source files and no previous output files.
[        ] :gradle:compileJava (Thread[Execution worker Thread 3,5,main]) completed. Took 0.0 secs.
[        ] Resolve mutations for :gradle:compileGroovy (Thread[Execution worker Thread 2,5,main]) started.
[        ] Resolve mutations for :gradle:compileGroovy (Thread[Execution worker Thread 2,5,main]) completed. Took 0.0 secs.
[        ] :gradle:compileGroovy (Thread[Execution worker Thread 3,5,main]) started.
[        ] > Task :gradle:compileGroovy UP-TO-DATE
[        ] Caching disabled for task ':gradle:compileGroovy' because:
[        ]   Build cache is disabled
[        ] Skipping task ':gradle:compileGroovy' as it is up-to-date.
[        ] :gradle:compileGroovy (Thread[Execution worker Thread 3,5,main]) completed. Took 0.01 secs.
[        ] :gradle:compileGroovyPlugins (Thread[Execution worker Thread 3,5,main]) started.
[        ] > Task :gradle:compileGroovyPlugins NO-SOURCE
[        ] Skipping task ':gradle:compileGroovyPlugins' as it has no source files and no previous output files.
[        ] :gradle:compileGroovyPlugins (Thread[Execution worker Thread 3,5,main]) completed. Took 0.0 secs.
[        ] :gradle:pluginDescriptors (Thread[Execution worker Thread 3,5,main]) started.
[        ] > Task :gradle:pluginDescriptors UP-TO-DATE
[        ] Caching disabled for task ':gradle:pluginDescriptors' because:
[        ]   Build cache is disabled
[        ] Skipping task ':gradle:pluginDescriptors' as it is up-to-date.
[        ] :gradle:pluginDescriptors (Thread[Execution worker Thread 3,5,main]) completed. Took 0.0 secs.
[        ] :gradle:processResources (Thread[Execution worker Thread 3,5,main]) started.
[        ] > Task :gradle:processResources UP-TO-DATE
[        ] Caching disabled for task ':gradle:processResources' because:
[        ]   Build cache is disabled
[        ] Skipping task ':gradle:processResources' as it is up-to-date.
[        ] :gradle:processResources (Thread[Execution worker Thread 3,5,main]) completed. Took 0.001 secs.
[        ] :gradle:classes (Thread[Execution worker Thread 9,5,main]) started.
[        ] > Task :gradle:classes UP-TO-DATE
[        ] Skipping task ':gradle:classes' as it has no actions.
[        ] :gradle:classes (Thread[Execution worker Thread 9,5,main]) completed. Took 0.0 secs.
[        ] Resolve mutations for :gradle:jar (Thread[Execution worker Thread 9,5,main]) started.
[        ] Resolve mutations for :gradle:jar (Thread[Execution worker Thread 9,5,main]) completed. Took 0.0 secs.
[        ] producer locations for task group 0 (Thread[Execution worker Thread 9,5,main]) started.
[        ] producer locations for task group 0 (Thread[Execution worker Thread 9,5,main]) completed. Took 0.0 secs.
[        ] > Task :gradle:jar UP-TO-DATE
[        ] Caching disabled for task ':gradle:jar' because:
[        ]   Build cache is disabled
[        ] Skipping task ':gradle:jar' as it is up-to-date.
[ +179 ms] > Configure project :app
[        ] Evaluating project ':app' using build file '/Users/felix/Desktop/flutter_flavors_bug/android/app/build.gradle'.
[        ] file or directory '/Users/felix/Development/github.com/flutter/flutter/packages/flutter_tools/gradle/src/main/resources', not found
[        ] file or directory '/Users/felix/Development/github.com/flutter/flutter/packages/flutter_tools/gradle/src/main/java', not found
[        ] file or directory '/Users/felix/Development/github.com/flutter/flutter/packages/flutter_tools/gradle/src/main/resources', not found
[        ] file or directory '/Users/felix/Development/github.com/flutter/flutter/packages/flutter_tools/gradle/src/main/java', not found
[        ] Resolve mutations for :gradle:compileGroovyPlugins (Thread[included builds,5,main]) started.
[        ] Resolve mutations for :gradle:compileGroovyPlugins (Thread[included builds,5,main]) completed. Took 0.0 secs.
[        ] Resolve mutations for :gradle:pluginDescriptors (Thread[included builds,5,main]) started.
[        ] Resolve mutations for :gradle:pluginDescriptors (Thread[included builds,5,main]) completed. Took 0.0 secs.
[        ] Resolve mutations for :gradle:processResources (Thread[included builds,5,main]) started.
[        ] Resolve mutations for :gradle:processResources (Thread[included builds,5,main]) completed. Took 0.0 secs.
[        ] Resolve mutations for :gradle:classes (Thread[included builds,5,main]) started.
[        ] Resolve mutations for :gradle:classes (Thread[included builds,5,main]) completed. Took 0.0 secs.
[        ] :gradle:jar (Thread[included builds,5,main]) started.
[        ] :gradle:jar (Thread[included builds,5,main]) completed. Took 0.001 secs.
[        ] Using Kotlin Gradle Plugin gradle70 variant
[        ] Parsed shrinker version: 3.3.70
[        ] > Configure project :
[        ] Evaluating root project 'android' using build file '/Users/felix/Desktop/flutter_flavors_bug/android/build.gradle'.
[        ] All projects evaluated.
[        ] 5 actionable tasks: 5 up-to-date
[        ] Watched directory hierarchies: [/Users/felix/Development/github.com/flutter/flutter/packages/flutter_tools/gradle]
[ +365 ms] Running Gradle task 'assembleDevelopmentDebug'... (completed in 1,190ms)
[   +1 ms] Using gradle from /Users/felix/Desktop/flutter_flavors_bug/android/gradlew.
[   +4 ms] executing: [/Users/felix/Desktop/flutter_flavors_bug/android/] /Users/felix/Desktop/flutter_flavors_bug/android/gradlew app:tasks --all --console=auto
[ +811 ms] > Task :gradle:extractPluginRequests NO-SOURCE
           > Task :gradle:generatePluginAdapters UP-TO-DATE
           > Task :gradle:compileJava NO-SOURCE
           > Task :gradle:compileGroovy UP-TO-DATE
           > Task :gradle:compileGroovyPlugins NO-SOURCE
           > Task :gradle:pluginDescriptors UP-TO-DATE
           > Task :gradle:processResources UP-TO-DATE
           > Task :gradle:classes UP-TO-DATE
           > Task :gradle:jar UP-TO-DATE

           BUILD SUCCESSFUL in 698ms
           6 actionable tasks: 1 executed, 5 up-to-date
[   +5 ms] 
           ┌─ Flutter Fix ───────────────────────────────────────────────────────────────────────────────────┐
           │ [!]  Gradle project does not define a task suitable for the requested build.                    │
           │                                                                                                 │
           │ The /Users/felix/Desktop/flutter_flavors_bug/android/app/build.gradle file defines product      │
           │ flavors: development, developmentexternal, developmentinternal, production, productionexternal, │
           │ productioninternal. You must specify a --flavor option to select one of them.                   │
           └─────────────────────────────────────────────────────────────────────────────────────────────────┘

[ +326 ms]
[   +1 ms] "flutter run" took 7,320ms.
[  +54 ms] ensureAnalyticsSent: 44ms
[        ] Running 1 shutdown hook
[   +2 ms] Shutdown hooks complete
[        ] exiting with code 1
```

</details>


### Flutter Doctor output

<details><summary>Doctor output</summary>

```console
$ flutter doctor -v
[✓] Flutter (Channel master, 3.11.0-6.0.pre.142, on macOS 13.0 22A8380
    darwin-arm64, locale en-US)
    • Flutter version 3.11.0-6.0.pre.142 on channel master at
      /Users/felix/Development/github.com/flutter/flutter
    • Upstream repository git@github.com:flutter/flutter.git
    • Framework revision 434b81f1a5 (21 minutes ago), 2023-05-18 22:02:22 +0330
    • Engine revision 237c60185a
    • Dart version 3.1.0 (build 3.1.0-122.0.dev)
    • DevTools version 2.23.1

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    • Android SDK at /Users/felix/Library/Android/sdk
    • Platform android-33, build-tools 33.0.2
    • Java binary at: /Applications/Android
      Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      11.0.15+0-b2043.56-8887301)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14C18
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      11.0.15+0-b2043.56-8887301)

[✓] VS Code (version 1.78.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.64.0

[✓] Connected device (3 available)
    • sdk gphone64 arm64 (mobile) • emulator-5554 • android-arm64  • Android 13 (API 33) (emulator)
    • macOS (desktop)             • macos         • darwin-arm64   • macOS 13.0 22A8380 darwin-arm64
    • Chrome (web)                • chrome        • web-javascript • Google Chrome 113.0.5672.126

[✓] Network resources
    • All expected network resources are available.

• No issues found!
```

</details>