Android Build Failure on AGP 8+
Summary
Android builds fail when using rollbar_flutter (v1.5.1 – latest) with Android Gradle Plugin 8+.
AGP 8+ no longer supports defining a library module’s namespace using the package attribute in AndroidManifest.xml. The plugin still relies on this deprecated mechanism, causing the build to fail.
Error
Incorrect package="com.rollbar.flutter" found in source AndroidManifest.xml
Setting the namespace via the package attribute in the source AndroidManifest.xml
is no longer supported.
Execution failed for task ':rollbar_flutter:processDebugManifest'
Affected File
rollbar_flutter/android/src/main/AndroidManifest.xml
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.rollbar.flutter">
Expected Behavior
The plugin should build successfully with modern Android toolchains (AGP 8+).
Actual Behavior
The Android build fails during processDebugManifest, blocking all Android builds.
Environment
Flutter: 3.35.7 (stable)
Dart: 3.9.2
rollbar_flutter: 1.5.1 (latest)
Android SDK: 35
Target SDK: 35
Gradle: 8.12
Android Gradle Plugin: 8.x
OS: macOS 15.1 (Apple Silicon)
Steps to Reproduce
flutter clean
flutter pub get
flutter run
Or:
flutter build apk --debug
Root Cause
Android Gradle Plugin 8+ disallows defining a namespace via the package attribute in library manifests.
The namespace must be declared in the module’s build.gradle file.

Android Build Failure on AGP 8+
Summary
Android builds fail when using
rollbar_flutter(v1.5.1 – latest) with Android Gradle Plugin 8+.AGP 8+ no longer supports defining a library module’s namespace using the
packageattribute inAndroidManifest.xml. The plugin still relies on this deprecated mechanism, causing the build to fail.Error
Affected File
Expected Behavior
The plugin should build successfully with modern Android toolchains (AGP 8+).
Actual Behavior
The Android build fails during
processDebugManifest, blocking all Android builds.Environment
Steps to Reproduce
Or:
Root Cause
Android Gradle Plugin 8+ disallows defining a namespace via the
packageattribute in library manifests.The namespace must be declared in the module’s
build.gradlefile.