-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Open
Labels
⏳Bot is counting down the days until it unassigns the issueBot is counting down the days until it unassigns the issueP1High-priority issues at the top of the work listHigh-priority issues at the top of the work listc: regressionIt was better in the past than it is nowIt was better in the past than it is nowfound in release: 3.32Found to occur in 3.32Found to occur in 3.32found in release: 3.33Found to occur in 3.33Found to occur in 3.33has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: shared_preferencesPlugin to read and write Shared PreferencesPlugin to read and write Shared Preferencespackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyAndroid applications specificallyt: gradle"flutter build" and "flutter run" on Android"flutter build" and "flutter run" on Androidteam-androidOwned by Android platform teamOwned by Android platform teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-androidTriaged by Android platform teamTriaged by Android platform team
Description
Steps to reproduce
After installing Flutter 3.32, we cannot use a custom Android app suffix id for the profile mode. We use <app_id>.profile as the app id on Android to be able to install different flavors in parallel.
It seems to happen only when a native plugin is installed, like shared_preferences
> flutter run
Launching lib/main.dart on sdk gphone64 x86 64 in debug mode...
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':shared_preferences_android'.
> Library projects cannot set applicationIdSuffix. applicationIdSuffix is set to '.profile' in build type 'profile'.
* 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 10s
Running Gradle task 'assembleDebug'... 10.9s
Error: Gradle task assembleDebug failed with exit code 1
To reproduce
flutter create counterflutter pub add shared_preferences- Add the suffix configuration to
android/app/build.gradle.ktsin thebuildTypessection
android {
buildTypes {
getByName("profile") {
applicationIdSuffix = ".profile"
versionNameSuffix = "-PROFILE"
signingConfig = signingConfigs.getByName("debug")
}
}
}flutter run(running on debug mode triggers the issue. No need to run in profile mode)
Expected results
Run successfully
Actual results
It doesn't run
Code sample
Demo app with minor tweaks described above are enough
Screenshots or Video
Logs
No response
Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.32.0, on Fedora Linux 41 (Workstation Edition) 6.14.6-200.fc41.x86_64, locale en_US.UTF-8) [107ms]
• Flutter version 3.32.0 on channel stable at /home/david/.local/share/mise/installs/flutter/3.32.0-stable
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision be698c48a6 (2 days ago), 2025-05-19 12:59:14 -0700
• Engine revision 1881800949
• Dart version 3.8.0
• DevTools version 2.45.1
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0) [2.1s]
• Android SDK at /home/david/Android/Sdk/
• Platform android-35, build-tools 35.0.0
• Java binary at: /home/david/opt/android-studio/jbr/bin/java
This is the JDK bundled with the latest Android Studio installation on this machine.
To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
• Java version OpenJDK Runtime Environment (build 21.0.5+-13047016-b750.29)
• All Android licenses accepted.
[✓] Chrome - develop for the web [20ms]
• Chrome at google-chrome
[✓] Linux toolchain - develop for Linux desktop [261ms]
• clang version 19.1.7 (Fedora 19.1.7-3.fc41)
• cmake version 3.30.8
• ninja version 1.12.1
• pkg-config version 2.3.0
! Unable to access driver information using 'eglinfo'.
It is likely available from your distribution (e.g.: apt install mesa-utils)
[✓] Android Studio (version 2024.2) [17ms]
• Android Studio at /home/david/opt/android-studio/
• 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
• android-studio-dir = /home/david/opt/android-studio/
• Java version OpenJDK Runtime Environment (build 21.0.5+-13047016-b750.29)
[✓] VS Code (version unknown) [14ms]
• VS Code at /usr/share/code
• Flutter extension version 3.110.0
✗ Unable to determine VS Code version.
[✓] Connected device (3 available) [192ms]
• sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64 • Android 13 (API 33) (emulator)
• Linux (desktop) • linux • linux-x64 • Fedora Linux 41 (Workstation Edition) 6.14.6-200.fc41.x86_64
• Chrome (web) • chrome • web-javascript • Google Chrome 136.0.7103.113
[✓] Network resources [293ms]
• All expected network resources are available.
• No issues found!deckerst, Chaphasilor, bpjhe, maRci002, patrikbadanjak and 15 more
Metadata
Metadata
Assignees
Labels
⏳Bot is counting down the days until it unassigns the issueBot is counting down the days until it unassigns the issueP1High-priority issues at the top of the work listHigh-priority issues at the top of the work listc: regressionIt was better in the past than it is nowIt was better in the past than it is nowfound in release: 3.32Found to occur in 3.32Found to occur in 3.32found in release: 3.33Found to occur in 3.33Found to occur in 3.33has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: shared_preferencesPlugin to read and write Shared PreferencesPlugin to read and write Shared Preferencespackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyAndroid applications specificallyt: gradle"flutter build" and "flutter run" on Android"flutter build" and "flutter run" on Androidteam-androidOwned by Android platform teamOwned by Android platform teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-androidTriaged by Android platform teamTriaged by Android platform team