Blocked with Android studio compilation issue ManifestMerger2$MergeFailureException
Asked Answered
E

3

10

With Android studio v0.8.2, I am blocked with the following exception. With the beta release it was working very well. I have updated my IDE to 0.8.2 and deleted my target directory and trying to build again. I am struck now.

Execution failed for task ':app:processDebugManifest'.

com.android.manifmerger.ManifestMerger2$MergeFailureException: java.io.FileNotFoundException: /home/gopinath/code/bitbucket/android/productionapp/build/intermediates/exploded-aar/com.jakewharton.hugo/hugo-runtime/1.1.0/AndroidManifest.xml (No such file or directory)

As reported by the error, the file is actually missing in the mentioned path. For my other project in which I have hugo-runtime, the file exists and compilation is proper.

Is anyone else facing this issue? Is there a workaround for this?

Ellingston answered 15/7, 2014 at 6:55 Comment(3)
Did you figure this out?Thiazine
I haven't found any solution so I fixed it by create new project and copied useful files to new project.Rebeckarebeka
if anyone still having this issue also try checking this answer only this worked for me : https://mcmap.net/q/1114774/-blocked-with-android-studio-compilation-issue-manifestmerger2-mergefailureexceptionBellini
S
1

Posting so that it might help others:

I ran into this issue as well. The error is from ManifestMerger and it made me believe it has something to do with my manifest file and that took me on a wrong path. This error can also happen in case of an invalid XML file in your resources. In my case it was a layout file that got left over from a merge conflict with nothing in it (an empty layout file) which in turn caused the issue. it also cloud be any other xml file so I would suggest opening your xml resources one at a time and see if there is any error in them (you will get the lint error when opening the file)

Somebody answered 24/7, 2018 at 18:1 Comment(1)
i checked all the solutions but this was the issue, thank you.Bellini
C
0

My issue was related to the <manifest tag. I forgot to include the xmlns:tools prop in the tag. After adding, the issue got resolved.

I changed this line:

<manifest xmlns:android="http://schemas.android.com/apk/res/android" >

to:

<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools">

And it worked.

Coalition answered 4/7, 2024 at 12:34 Comment(0)
B
-1

Click the build tab and clean Project. Boom!

Betjeman answered 23/9, 2014 at 18:43 Comment(2)
Didn't help me :(Motorboat
it never work. I removed even .android and .gradle folder caches along with build folder and fire Invalidate Cache and Restart after that.Coolish

© 2022 - 2025 — McMap. All rights reserved.