Skip to content

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

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

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>
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