How to fix "Manifest merger failed with multiple errors, see logs." error in Android Studio.

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
Hello friends today in this video I will show you how to solve this Android Studio error manifest merger failed with multiple errors see logs this error may occur in different scenarios so just trying out the solutions from the stack Overflow may not solve your problem you need to find the root cause to fix the issue now let's find out what is it causing this error don't skip the video and watch till the end firsts these build output errors see here the error is because of this Android colon exported property Android colon exported needs to be explicitly specified for element activity apps targeting Android 12 and higher are required to specify an explicit value for Android colon exported when the corresponding component has an intent filter defined see all these errors because of the same property this indicates if your app is targeting Android SDK version 30 one and higher then you need to mention this property for your activity in manifest file see my app is targeting Android SDK version 33 means Android 13 okay let's open manifest file but here I have only one activity and it is already specified with exported property so this way we are not able to find the actual problem let's go for the second way way this one I already have explained in my other video here we will go to the merged manifest tab to check for any errors if your manifest file is the one creating those manifest merger issue then you will see the errors here like this this way you can find out the root cause and fix that particular issue which is causing the error through your manifest file but see I don't have any errors displayed in my manifest file merged t tab means the problem is not because of my manifest file now let's find out what is creating the problem in the build output it is mentioned the activity Android x. test. C.A is not specified the exported property that means some external library is causing this error let's check the library change View mode to project go to external libraries search for Android x. test . core open this Android manifest.xml file see there is an activity called bootstrap activity with intent filter but not defined with exported property same way other activities also defined with intent filters but not mentioned exported property so we got the cause now we need the solution for this because the problem is with the external Library we will check the dependencies in build. gradal file see these two are Android x. test dependencies check for the version updates because the old library versions might not be targeting Android 12 select this suggestions icon change version number to 1.1.5 same way update the version number for this Android x. test Library also now sync the gradal files rebuild the project yes the build is successful now let's verify the library once again open manifest file see Android colon exported equal to True is added to the activity this way first we need to check the root cause for the Manifest merger issue and then try to fix the problem hope you got an idea on how to find the root cause and get the solution for this manifest merger failed issue if you think this video is helpful comment like the video and subscribe to IA Tech Solutions thank you
Info
Channel: iRekha Tech Solutions
Views: 781
Rating: undefined out of 5
Keywords:
Id: 2xMvOymywIo
Channel Id: undefined
Length: 4min 13sec (253 seconds)
Published: Tue Mar 19 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.