question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Manifest merger failed with multiple errors, see logs

See original GitHub issue

Description

Anyone knows why I am getting this error: Apps targeting Android 12 and higher are required to specify an explicit value for android:exported when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details. in processDebugMainManifest ?? 3 days ago basically was working and I didn’t make any major change. in my androidmanifest file I have android:exported=“true” already in the <activity … >

Version

0.66.3

Output of npx react-native info

mac123@Mac123s-iMac Tutorline-RN % npx react-native info info Fetching system and libraries information… System: OS: macOS 10.15.7 CPU: (4) x64 Intel® Core™ i5-4590 CPU @ 3.30GHz Memory: 64.67 MB / 8.00 GB Shell: 5.7.1 - /bin/zsh Binaries: Node: 16.4.1 - /usr/local/bin/node Yarn: Not Found npm: 8.15.0 - ~/Desktop/Vishal_Parmar/TutorlineGit/Notification_App/Tutorline-RN/node_modules/.bin/npm Watchman: 2021.06.07.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.11.2 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2 Android SDK: Not Found IDEs: Android Studio: 4.2 AI-202.7660.26.42.7486908 Xcode: 12.4/12D4e - /usr/bin/xcodebuild Languages: Java: 11.0.11 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 17.0.2 => 17.0.2 react-native: 0.66.3 => 0.66.3 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Steps to reproduce

When trying to rebuild the project in android studio or react-native run-android in terminal i am getting the following error. Apps targeting Android 12 and higher are required to specify an explicit value for android:exported when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details.

Snack, code example, screenshot, or link to a repository

Screenshot 2022-09-30 at 10 09 29 AM

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
longb1997commented, Sep 30, 2022

https://www.saashub.com/jitpack-status It seems there are some of your libs that use jitpack, so when jitpack fails, it can’t merge the manifest.

try adding implementation "androidx.test:core:1.4.0" to dependencies in android/app/build.gradle

0reactions
kaushallalocommented, Oct 3, 2022

I have added the following lines in my project and it solved my error.

Android -> App -> Build.gradle android { configurations{ all.exclude module:‘conceal’ all.exclude module:‘bcprov-jdk15on’ } } dependencies{ implementation “androidx.test:core:1.4.0” }

Read more comments on GitHub >

github_iconTop Results From Across the Web

Manifest Merger failed with multiple errors in Android Studio
Usually occurs when you have errors in your manifest.Open AndroidManifest.xml .Click on the merged manifest tab.
Read more >
Manifest Merger Fails with Multiple Errors in Android Studio
Some Useful Tricks to Solve Merge Errors · Add the overrideLibrary attribute to the <uses-sdk> tag. · The minSdkVersion of the application and...
Read more >
manifest merger failed with multiple errors see logs - Edureka
The initial process would be to open the manifest application known as the AndroidManifest.xml and then click on the Merged Manifest tab below ......
Read more >
manifest merger failed with multiple errors - You.com
Manifest merger failed with multiple errors, see logs. It is the best solution is to check :- [i] Android manifest file. duplicate or...
Read more >
app:processDebugMainManifest FAILED, Manifest Merger ...
Task :app:processDebugMainManifest FAILED, Manifest Merger Failed with multiple errors in React Native using Android Sdk Version 31.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found