Menu

Library projects cannot set applicationIdSuffix: Flutter on AGP 9
📰

Library projects cannot set applicationIdSuffix: Flutter on AGP 9

DEV Community: flutter·Mohamed Gado·3 days ago
#YyTSo90D
#devtoflutter#devto#dev#build#profile
Long article (743 words) — no AI summary yet.
Reading 0:00
15s threshold

Hadeed , my offline gym log, is a Flutter app. I upgraded it to Flutter 3.50.0, Android Gradle Plugin 9.3.1 and Gradle 9.5.0, and the Android build failed on configuration with this error:

Library projects cannot set applicationIdSuffix

Enter fullscreen mode

Exit fullscreen mode

My app has no library projects. It has one app module, and the only applicationIdSuffix in it was on my own build types:

buildTypes { debug { applicationIdSuffix = ".dev" } getByName ( "profile" ) { applicationIdSuffix = ".profile" } }

Enter fullscreen mode

Exit fullscreen mode

Both suffixes exist for the same reason. A test build with its own package id installs next to the Play build instead of replacing it. Replacing it would mean uninstalling the Play build first, and that deletes the user's training log. So I wanted to keep them.

Where the library comes from

The "library projects" are your Flutter plugins.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.