By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement . We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account Manifest merger failed : Overlay manifest:package attribute declared at AndroidManifest.xml #35976 Manifest merger failed : Overlay manifest:package attribute declared at AndroidManifest.xml #35976 Cumbemoz opened this issue Jul 11, 2019 · 8 comments

I was Having this issue on Flutter, After Trying to Change the package name, so it says
Manifest merger failed : Overlay manifest:package attribute declared at AndroidManifest.xml:2:5-45 value=( my Old Package )

    has a different value=(_My New Package_) declared in main manifest at AndroidManifest.xml:2:5-50
    Suggestion: remove the overlay declaration at AndroidManifest.xml       and place it in the build.gradle:
            flavorName {
                    applicationId = "_My old Package_"

To Fix it i found another Android Manifest files, they Were on C:\Users\myusername\Desktop\MyFlutterProjects\Myappname\android\app\src\profile
C:\Users\myusername\Desktop\MyFlutterProjects\Myappname\android\app\src\debug

you have to change the package on this two other manifest files

Hi All,

I had the same issue, and I changed in 5 location.

1.) src/profile/AndroidManifest.xml
2.) src/debug/AndroidManifest.xml
3.) src/main/AdroidManifest.xml
4.) build.gradle .
defaultConfig {
applicationId
5.) MainActivity.java on "package"

After modifying the above files. I could run the app without any issues.

emvaized, AbdullahHamdanAldassoukii, Bahaaib, onewkl, nebnhoj, atul-chaudhary, MrAndrixx, 0xjoaovpsantos, rodrigolmacedo, sk3llo, and 15 more reacted with thumbs up emoji 0xjoaovpsantos, irfanbaigse, llbeyer, marinat, marcosicp, and yangyiRunning reacted with laugh emoji onewkl, 0xjoaovpsantos, irfanbaigse, and yangyiRunning reacted with hooray emoji afzaal-ahmad-zeeshan, AbdullahHamdanAldassoukii, Bahaaib, onewkl, dsavke, irfanbaigse, llbeyer, marcosicp, FeMaffezzolli, and yangyiRunning reacted with heart emoji 0xjoaovpsantos, irfanbaigse, marcosicp, FeMaffezzolli, and yangyiRunning reacted with rocket emoji All reactions

There are three Manifest files, try to search them and change your package name.
In these directories:
app/src/debug
app/src/profile
app/src/main

emvaized, easazade, andirsun, danialumair, and FeMaffezzolli reacted with thumbs up emoji andirsun, danialumair, and FeMaffezzolli reacted with heart emoji All reactions Build file 'F:\Flutter\Projects\Alola\android\app\build.gradle' line: 24 * What went wrong: A problem occurred evaluating project ':app'. > ASCII This issue only on windows platform. Doesn't happen if you use ubuntu. Solution from https://stackoverflow.com/a/58655615/5180337 flutter/flutter#38163 (comment) other links tha you should check firebase/flutterfire#272 flutter/flutter#38163 (comment) firebase/flutterfire#347 flutter/flutter#35976 (comment)