android supportsRtl conflict, suggested to add 'tools:replace' - android

I have an android app and i've defined android:supportsRtl="false" (Without it - it was rtl and I don't want it).
Now i'm using this library:
compile 'com.iceteck.silicompressorr:silicompressor:2.0'
And the my code doesn't compile:
Error:Execution failed for task ':app:processDebugManifest'.
Manifest merger failed : Attribute application#supportsRtl value=(false) from AndroidManifest.xml:40:9-36
is also present at [com.iceteck.silicompressorr:silicompressor:2.0] AndroidManifest.xml:17:9-35 value=(true).
Suggestion: add 'tools:replace="android:supportsRtl"' to element at AndroidManifest.xml:36:5-189:19 to override.
I'm not completely understanding how should I implement the suggestion, or if there is another way to solve it.
I've tried tools:replace="android:supportsRtl=false" but it still doesn't compile
Thanks!

Ideally, you would use true for supportsRtl. And, ideally, the library would not be setting any value for supportsRtl.
However, the instructions in the error message should be straightforward:
Suggestion: add 'tools:replace="android:supportsRtl"' to element at AndroidManifest.xml:36:5-189:19 to override
Since we don't have your manifest, we have to guess as to what is on those lines. Most likely, you should add tools:replace="android:supportsRtl" to your <application> element, in addition to your android:supportsRtl="false" that you already have there.

Related

I am facing Manifest merger failed can any one tell.?

Manifest merger failed: Attribute
provider#com.google.firebase.provider.FirebaseInitProvider#authorities value=(fintnessathome.cardioexcercise.firebaseinitprovider) from AndroidManifest.xml:766:13-86
is also present at [com.google.firebase:firebase-common:19.3.0] AndroidManifest.xml:28:13-72 value=(com.fintnessathome.fintnessathomeapp.firebaseinitprovider).
Suggestion: add 'tools:replace="android:authorities"' to <provider> element at AndroidManifest.xml:764:9-768:39 to override.
I am facing this issue, I got the template from my friend and i want to make some changes in the android app, it's showing this error when I execute this program.
Try adding following Code in your manifest.xml
tools:replace="android:allowBackup"
Try adding the following in the gradle.properties file
android.useAndroidX=true
android.enableJetifier=true
android.enableUnitTestBinaryResources=false
Also, add the following code into your manifest file inside the application tag
tools:replace="android:supportsRtl,android:allowBackup,icon,label"

Flutter When running app on Android a Manifest Merger failed error: different values is found

I am receiving the following error when I try to test my app on Android:
Execution failed for task ':app:processDebugManifest'.
Manifest merger failed : Overlay manifest:package attribute declared at AndroidManifest.xml:2:5-36 value=(com.carbery.qiGangApp)
has a different value=(com.carbery.qiGangApp) declared in main manifest at AndroidManifest.xml:2:5-29
Suggestion: remove the overlay declaration at AndroidManifest.xml and place it in the build.gradle:
flavorName {
applicationId = "com.carbery.qiGangApp"
}
A little history, I did use another app as a template for starting this one and so I changed the name and the applicationId. Originally when running the app for Android I received the same error as above, but with the old name. I then did a Find through all my files and changed the old name to the new one. The correct name is: com.carbery.qiGangApp
However I am still receiving the error, now even though the two values it refers to, look to be the same correct ones.
As I come from an Ios back ground, I am not so familiar with the Android set up. So any help with solving this would really be gratefully received.
Many thanks
I was able to recreate your problem it seems that you need to sync your package name across multiple AndroidManifest.xml files.
Try to update this 3 AndroidManifest.xml files:

Error while adding Firebase to Android Studio

Error:Execution failed for task ':app:processDebugManifest'.
Manifest merger failed : Attribute meta-data#android.support.VERSION#value value=(26.0.0-beta1) from [com.android.support:appcompat-v7:26.0.0-beta1] AndroidManifest.xml:28:13-41
is also present at [com.android.support:support-v4:26.1.0] AndroidManifest.xml:28:13-35 value=(26.1.0).
Suggestion: add 'tools:replace="android:value"' to element at AndroidManifest.xml:26:9-28:44 to override.
Try to fix the version mentioned in your gradle file.
All of the dependencies should have same version number.
Answer is already provided in ur error...
just goto ur manifest, inside application tag put this : tools:replace="android:value"
Edit version com.android.support:appcompat:26.1.0 and com.android.support:support:26.1.0 same.
Add this line into manifest:
<application
...
...
tools:replace="android:value">

Manifest merger failed while integrating payumoney

I am integrating payumoney in my android application. I have read docs and see video for integration i.e < https://www.youtube.com/watch?v=gnQ0IF3XniM&t=740s >. Problem is when i am trying to import module dependency it gives me error that manifest merger failed with multiple error.
C:\Users\amit\Desktop\New folder (3)\SalwarTales-master\app\src\main\AndroidManifest.xml:22:9-38 Error:
Attribute application#icon value=(#drawable/logo) from AndroidManifest.xml:22:9-38
is also present at [:sdkui] AndroidManifest.xml:20:9-43 value=(#mipmap/ic_launcher).
Suggestion: add 'tools:replace="android:icon"' to <application> element at AndroidManifest.xml:20:5-72:19 to override.
C:\Users\amit\Desktop\New folder (3)\SalwarTales-master\app\src\main\AndroidManifest.xml:26:9-43 Error:
Attribute application#theme value=(#style/NoActionBar) from AndroidManifest.xml:26:9-43
is also present at [:sdkui] AndroidManifest.xml:22:9-40 value=(#style/AppTheme).
Suggestion: add 'tools:replace="android:theme"' to <application> element at AndroidManifest.xml:20:5-72:19 to override.
finally did it. very silly mistake. I was using Different launcher icon and app theme in both modules.

Android Google Play Service duplicated

Anyone has idea about this Error genre,
Error:Execution failed for task ':app:processDebugManifest'. Manifest
merger failed : Attribute
meta-data#com.google.android.gms.version#value
value=(#integer/google_play_services_version) from
AndroidManifest.xml:18:13-66 is also present at
[io.nlopez.smartlocation:library:3.0.11] AndroidManifest.xml:31:13-36
value=(6587000) Suggestion: add 'tools:replace="android:value"' to
element at AndroidManifest.xml:16:9-18:69 to override
in your manifest under application tag add tools replace tag, Like this application
android:icon="#drawable/icon"
android:label="#string/app_name"
tools:replace="android:value"
Then try to compile and run...

Categories

Resources