Skip to content

AGP 9: unique Android namespace for the core plugin (on 1.1.11) - #1

Closed
MarcinusX wants to merge 1 commit into
base-1.1.11from
agp9-namespace-fix
Closed

AGP 9: unique Android namespace for the core plugin (on 1.1.11)#1
MarcinusX wants to merge 1 commit into
base-1.1.11from
agp9-namespace-fix

Conversation

@MarcinusX

Copy link
Copy Markdown
Collaborator

Why

The plugin declares Android namespace com.segment.analytics, which collides with the transitive com.segment.analytics.kotlin:android library (same namespace, pulled via the Customer.io SDK). AGP 9 escalates duplicate namespaces to a hard manifest-merger error. Patched on top of the 1.1.11 release so consuming apps can keep that version.

What

  • packages/core/android/build.gradle: namespace com.segment.analyticscom.segment.analytics.flutter
  • Drop the deprecated package= attribute from the library AndroidManifest.xml
  • Dart surface unchanged.

The plugin declared namespace 'com.segment.analytics', which collides with
the transitive com.segment.analytics.kotlin:android library (same namespace,
pulled via the Customer.io SDK). AGP 9 escalates duplicate namespaces to a
hard manifest-merger error. Rename to com.segment.analytics.flutter and drop
the deprecated manifest package= attribute. Dart surface unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@MarcinusX

Copy link
Copy Markdown
Collaborator Author

Obsolete: the fork moved to the 1.1.12 upstream base, and the namespace fix now lives on main (c4c2358, upstream PR segmentio#215).

@MarcinusX MarcinusX closed this Aug 26, 2026
@MarcinusX
MarcinusX deleted the agp9-namespace-fix branch August 26, 2026 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant