karantanwar / unique_identifier

A flutter plugin for getting the unique serial number for android and identifierForVendor in ios
MIT License
8 stars 33 forks source link

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

Open pieter-hydraloop opened 4 days ago

pieter-hydraloop commented 4 days ago

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