Skip to content

The package name is set in the manifest xml and not in de build.gradle #19

@pieter-hydraloop

Description

@pieter-hydraloop

The package name is set in the manifest xml and not in de build.gradle this is no longer supported.

This error came when i upgraded AGP etc.

I added some automatic package set in my project for the subprojects which overrides the package name in unique_identifier but after that it still fails because the package is set in the manifest xml.

Incorrect package="altercode.xyz.uniqueidentifier" found in source AndroidManifest.xml: ****/.pub-cache/hosted/pub.dev/unique_identifier-0.3.0/android/src/main/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported.

Could you set in build.gradle:
android {
namespace "altercode.xyz.uniqueidentifier"
}

And remove in AndroidManifest.xml:
package="altercode.xyz.uniqueidentifier"

Kind regards,

Pieter

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions