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