Questions tagged [manifest-merging]
42 questions
54
votes
3 answers
MANIFEST MERGER: It is possible to see the resulting mixed Manifest?
I have a library module with a huge manifest. Also i have a application module with a huge manifest very similar to my library manifest but with package name changes. Now i want to see the resulting mixed manifest of Manifest Merger process.
How can…

NullPointerException
- 36,107
- 79
- 222
- 382
51
votes
2 answers
Possible to use multiple authorities with FileProvider?
Background
I maintain a library whose core functionality involves sharing programmatically-captured screenshots to external email applications.
I use a FileProvider to accomplish this, which means my library's manifest contains a …

stkent
- 19,772
- 14
- 85
- 111
30
votes
3 answers
Using ${applicationId} in library manifest
I'm working on an SDK that uses an internal ContentProvider, I would like to use this SDK in a few projects, and declare it in the library manifest, so I've tried this:

TacB0sS
- 10,106
- 12
- 75
- 118
24
votes
2 answers
How to use the new manifest merger (of Android Studio and Gradle)?
Background
In the past, when Eclipse&ADT were the official tools to develop for Android, you could simply use "manifestmerger.enabled=true" inside the "project.properties" of the app's project, and you got it merging all of the libraries' manifests…

android developer
- 114,585
- 152
- 739
- 1,270
15
votes
1 answer
applicationId manifest placeholder for multiple build flavors not working
I am modifying current android project so it can be installed on same device for multiple flavors and build configs.
build.gradle:
{
// ...
defaultConfig {
applicationId "com.myapp"
manifestPlaceholders = [
…

Wellsen
- 325
- 1
- 3
- 9
11
votes
1 answer
Android Studio is adding me android.permission.USE_CREDENTIALS on my manifest
When i compile my app for release, a new permission called USE_CREDENTIALS is being added to my manifest.
Why? What is this permission? i can't find any official info about it on…

NullPointerException
- 36,107
- 79
- 222
- 382
6
votes
2 answers
Android Studio - Instant App - Manifest merging error
I have problem with my Android Studio Instant App Project.
If I select Manifest.xml in /app directory then select Merger Manifest then I have such error:
Merging Errors: Error: Attribute…

Michał Ziobro
- 10,759
- 11
- 88
- 143
6
votes
2 answers
Gradle-only solution to modify App name based on Build Variant
I am trying to modify my gradle file to allow for different names for my app based on Flavor and Build Type. So far, I have been successful in being concise with Flavor based naming using Manifest Merging techniques via the Android Gradle Plugin…

Christopher Rucinski
- 4,737
- 2
- 27
- 58
5
votes
1 answer
Resource merging in Instant Apps features modules
In an Instant App feature module, I'm importing an aar (using "api" statement from a maven repository) which contains an activity declaration in its manifest and a "style" resource used in this declaration.
The resulting manifest merging fails…

gbaccetta
- 4,449
- 2
- 20
- 30
2
votes
1 answer
React native Android build error: Manifest merger failed : Attribute application@appComponentFactory
Suddenly got this build error (out of nowhere) which worked well in the morning.
I tried enabling AndroidX flags, but got ViewCompat class not found issue. So I rolled it back. I didn't make any changes since yesterday and it had no issues at all…

Yeshan Jay
- 1,403
- 1
- 9
- 18
2
votes
2 answers
Could not find manifest-merger.jar
Could not find manifest-merger.jar (com.android.tools.build:manifest-merger:26.1.0).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/build/manifest-merger/26.1.0/manifest-merger-26.1.0.jar
Already tried the…

Android Guy
- 573
- 1
- 8
- 18
2
votes
3 answers
Execution failed for task :app:processDebugmanifest
Error:Execution failed for task ':app:processDebugManifest'.
com.android.manifmerger.ManifestMerger2$MergeFailureException: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Premature end of file.

Sachin Kumar Singh
- 31
- 1
- 2
2
votes
1 answer
Manifest Merge in Android Studio
I am facing problem as Manifest Merging problem with FBReader third party library. I tried all the solutions available on StackOverflow, but it doesn't helped me. Please suggest me solution regarding the same. Please have a look on my Manifest file…

Sanat Pandey
- 4,081
- 17
- 75
- 132
1
vote
1 answer
How to modify Android Manifest permission coming form the merged manifest?
I've seen how to remove a permissions, for example Android Gradle Manifest Merger: Override 'uses-permission' attribute coming from a library. You can also add a new permission simply featuring it in your own Manifest file.
But what if you neither…

Csaba Toth
- 10,021
- 5
- 75
- 121
1
vote
2 answers
Manifest merger failed with multiple errors, see logs in Android Studioo
So, I am a beginner into Android and Kotlin. I just began learning. While I was experimenting with Intent today, I incurred an error.
Manifest merger failed with multiple errors, see logs
I found some solutions here and tried to implement them, but…

flanker05
- 11
- 1