-
Notifications
You must be signed in to change notification settings - Fork 368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
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
Android debug build fails with manifest merge failure #579
Comments
Hi @haswalt , We generally see manifest merger errors during the gradle build, but it actually shouldn't cause any further issues, you should still be able to build & run your project. |
This error prevents the build from passing and therefore tests from running. It actually breaks a significant part of our workflow completely. I can assemble release builds but not debug test builds |
@haswalt I haven't seen this issue in quite a while and I assumed the Android OneSignal Native SDK must have fixed something. Currently I cannot reproduce this issue. Can you copy and paste your |
@Nightsd01 gist of app/build.gradle: https://gist.github.com/haswalt/610182d006677ab52ce04e288cd6f97c Note the addition of the manifest placeholders for testing. Instructions don’t include adding them, but old ones did so figured I’d see if it fixed it. It didn’t |
@haswalt Any progress on this issue, did you figure it out? |
@adamczyk777 nope no progress. @Nightsd01 any help? |
@haswalt Under the debug {
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
defaultConfig {
manifestPlaceholders = [
onesignal_app_id: "[REDACTED]",
onesignal_google_project_number: "REMOTE"
]
}
} |
Any progress on this? This error comes up every time I try to make a debug build |
I just replace with |
Is anyone at OneSignal able to help with this issue? Not being able to create a debug build is blocking me. |
I'm having a similar issue. |
@doridembinsky I think you hit the nail on the head. My build.gradle file uses productFlavor as well and I get the same failure to build when trying to run in the simulator. As soon as I comment out the productFlavor section it builds flawlessly. |
The solution that fixed it for me was to add:
In android/build.gradle |
@doridembinsky and where exactly in android/build.gradle should I add subprojects code? |
Description:
Simple project with firebase and detox installed. Added react-native-onesignal and now Android Studio can't build for debug due to manifest merge failures that seem to be caused by the one signal project. Release builds work fine. I tried adding placeholder values to defaultConfig to no avail.
Environment
installed with npm.
Steps to Reproduce Issue:
./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug
Anything else:
The text was updated successfully, but these errors were encountered: