fat-aar-plugin icon indicating copy to clipboard operation
fat-aar-plugin copied to clipboard

Getting ManifestMerger2 MergeFailureException on basic project

Open DarioAhdoot opened this issue 7 years ago • 3 comments

As mentioned in the other Issue, I'm having Manifest Merging issues, even on Android Gradle Plugin 2.2.3 and with build cache disabled.

I've attached a minimum reproducible example: FatAarExample.zip

Here we have three Library projects (LibraryA, LibraryB, and LibraryC), and a fourth (FatLibrary) which tries to embed them.

Import this into Android Studio. Both Syncing and Building will fail with the given exception.

Please let me know if you have any questions.

DarioAhdoot avatar Dec 01 '17 12:12 DarioAhdoot

To add this line to the manifest node in your main manifest file does the trick.

xmlns:tools="http://schemas.android.com/tools"

I will try to fix it someday.

vigidroid avatar Dec 04 '17 06:12 vigidroid

Thanks, that fixed the minimum reproducible example I provided, but we're still seeing the issue with our actual project. I'll have to do some more investigating. Our manifests are basically identical, as are our build.gradle files. Frustrating.

DarioAhdoot avatar Dec 04 '17 09:12 DarioAhdoot

@Diarrhio yes it's frustrating. In the source code of android plugin, the handling of manifest merge part is such complicated. You can post the full stacktrace of your project, to try the luck.

vigidroid avatar Dec 04 '17 11:12 vigidroid