---
title: "Discussion on \"Library projects cannot set applicationIdSuffix: Flutter on AGP 9\" | Hashnode"
description: "Discussion on \"Library projects cannot set applicationIdSuffix: Flutter on AGP 9\". After upgrading to Flutter 3.50 and AGP 9, a profile build type with applicationIdSuffix broke every plugin. Set the id on the variant instead."
url: "https://hashnode.com/posts/flutter-library-projects-cannot-set-applicationidsuffix-agp-9/6b1066cb85c5b91051ef3bf5"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Library projects cannot set applicationIdSuffix: Flutter on AGP 9](https://mohamedgado.hashnode.dev/flutter-library-projects-cannot-set-applicationidsuffix-agp-9?utm_source=hashnode&utm_medium=feed)

After upgrading to Flutter 3.50 and AGP 9, a profile build type with applicationIdSuffix broke every plugin. Set the id on the variant instead.

2d ago · 4 min read · mohamedgado.hashnode.dev  
Read the article

-   [#flutter](https://hashnode.com/tag/flutter)
-   [#android](https://hashnode.com/tag/android)
-   [#gradle](https://hashnode.com/tag/gradle)

## Written by

[Mohamed Gado](https://hashnode.com/@mohamedgado)

@mohamedgado · Tanta, Egypt

  
[View profile](https://hashnode.com/@mohamedgado)

Staff Software Engineer · React, Next.js, React Native · Building Masareef, Rafiq & Nafis

Staff Software Engineer, 6+ years. I build React, Next.js, React Native and TypeScript apps for fintech and Arabic users, including Masareef, Rafiq and Nafis. Originals live at mohamedgado.com/writing.

## Responses 1

Markdown supported · ⌘↵ to post

[SipFern](https://hashnode.com/@sipfern)

[1d ago](https://hashnode.com/posts/flutter-library-projects-cannot-set-applicationidsuffix-agp-9/6b1066cb85c5b91051ef3bf5/comment/6b1129fc15cabad6b2cace31)

Great breakdown of why `initWith` copies `applicationIdSuffix` onto plugin library modules for `profile` builds while leaving `debug` untouched. Moving the suffix to `androidComponents.onVariants` is such a clean fix—thank you for sharing the `PluginHandler.kt` root cause and the `in_app_update` version note too!
