Manifest Merger failed with multiple errors in Android Studio












125















So, I am a beginner into Android and Java. I just began learning. While I was experimenting with Intent today, I incurred an error.



Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed with multiple errors, see logs


I found some solutions here and tried to implement them, but it did not work.



This is my build.gradle :



apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "23.0.0"

defaultConfig {
applicationId "com.example.rohan.petadoptionthing"
minSdkVersion 10
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.0.0'
}


This is my AndroidManifest :



<?xml version="1.0" encoding="utf-8"?>





package="com.example.rohan.petadoptionthing" >

<application

android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

<activity android:name=".Second"
/>

<activity android:name=".third"/>
<activity android:name=".MainActivity"/>


</application>




This is my first week with coding, I am sorry if this is a really silly thing. I am really new to this and did not find any other place to ask. Sorry if I broke any rules










share|improve this question




















  • 1





    remove line <activity android:name=".MainActivity"/> in your menifest.xml file

    – Pankaj Talaviya
    Oct 5 '16 at 4:59






  • 10





    For detailed information about the error you can check Gradle Console in Android Studio on the bottom right corner.

    – DragonT
    Jan 30 '17 at 20:40











  • I hope this link will be useful.

    – Mortreza AD
    Aug 19 '18 at 14:06











  • I got the same error.But solved it by keeping the same minimum SDK in project and library.

    – Raja Jawahar
    Dec 16 '18 at 10:09











  • youtu.be/K88WaSm3q8Y "Manifest Merger failed with multiple errors in Android Studio"?

    – Roman Pokrovskij
    Jan 18 at 16:59
















125















So, I am a beginner into Android and Java. I just began learning. While I was experimenting with Intent today, I incurred an error.



Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed with multiple errors, see logs


I found some solutions here and tried to implement them, but it did not work.



This is my build.gradle :



apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "23.0.0"

defaultConfig {
applicationId "com.example.rohan.petadoptionthing"
minSdkVersion 10
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.0.0'
}


This is my AndroidManifest :



<?xml version="1.0" encoding="utf-8"?>





package="com.example.rohan.petadoptionthing" >

<application

android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

<activity android:name=".Second"
/>

<activity android:name=".third"/>
<activity android:name=".MainActivity"/>


</application>




This is my first week with coding, I am sorry if this is a really silly thing. I am really new to this and did not find any other place to ask. Sorry if I broke any rules










share|improve this question




















  • 1





    remove line <activity android:name=".MainActivity"/> in your menifest.xml file

    – Pankaj Talaviya
    Oct 5 '16 at 4:59






  • 10





    For detailed information about the error you can check Gradle Console in Android Studio on the bottom right corner.

    – DragonT
    Jan 30 '17 at 20:40











  • I hope this link will be useful.

    – Mortreza AD
    Aug 19 '18 at 14:06











  • I got the same error.But solved it by keeping the same minimum SDK in project and library.

    – Raja Jawahar
    Dec 16 '18 at 10:09











  • youtu.be/K88WaSm3q8Y "Manifest Merger failed with multiple errors in Android Studio"?

    – Roman Pokrovskij
    Jan 18 at 16:59














125












125








125


23






So, I am a beginner into Android and Java. I just began learning. While I was experimenting with Intent today, I incurred an error.



Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed with multiple errors, see logs


I found some solutions here and tried to implement them, but it did not work.



This is my build.gradle :



apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "23.0.0"

defaultConfig {
applicationId "com.example.rohan.petadoptionthing"
minSdkVersion 10
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.0.0'
}


This is my AndroidManifest :



<?xml version="1.0" encoding="utf-8"?>





package="com.example.rohan.petadoptionthing" >

<application

android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

<activity android:name=".Second"
/>

<activity android:name=".third"/>
<activity android:name=".MainActivity"/>


</application>




This is my first week with coding, I am sorry if this is a really silly thing. I am really new to this and did not find any other place to ask. Sorry if I broke any rules










share|improve this question
















So, I am a beginner into Android and Java. I just began learning. While I was experimenting with Intent today, I incurred an error.



Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed with multiple errors, see logs


I found some solutions here and tried to implement them, but it did not work.



This is my build.gradle :



apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "23.0.0"

defaultConfig {
applicationId "com.example.rohan.petadoptionthing"
minSdkVersion 10
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.0.0'
}


This is my AndroidManifest :



<?xml version="1.0" encoding="utf-8"?>





package="com.example.rohan.petadoptionthing" >

<application

android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

<activity android:name=".Second"
/>

<activity android:name=".third"/>
<activity android:name=".MainActivity"/>


</application>




This is my first week with coding, I am sorry if this is a really silly thing. I am really new to this and did not find any other place to ask. Sorry if I broke any rules







android






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 22 '18 at 13:10









Rahul Tiwari

4,22612452




4,22612452










asked Mar 7 '16 at 11:48









this.rowenthis.rowen

748256




748256








  • 1





    remove line <activity android:name=".MainActivity"/> in your menifest.xml file

    – Pankaj Talaviya
    Oct 5 '16 at 4:59






  • 10





    For detailed information about the error you can check Gradle Console in Android Studio on the bottom right corner.

    – DragonT
    Jan 30 '17 at 20:40











  • I hope this link will be useful.

    – Mortreza AD
    Aug 19 '18 at 14:06











  • I got the same error.But solved it by keeping the same minimum SDK in project and library.

    – Raja Jawahar
    Dec 16 '18 at 10:09











  • youtu.be/K88WaSm3q8Y "Manifest Merger failed with multiple errors in Android Studio"?

    – Roman Pokrovskij
    Jan 18 at 16:59














  • 1





    remove line <activity android:name=".MainActivity"/> in your menifest.xml file

    – Pankaj Talaviya
    Oct 5 '16 at 4:59






  • 10





    For detailed information about the error you can check Gradle Console in Android Studio on the bottom right corner.

    – DragonT
    Jan 30 '17 at 20:40











  • I hope this link will be useful.

    – Mortreza AD
    Aug 19 '18 at 14:06











  • I got the same error.But solved it by keeping the same minimum SDK in project and library.

    – Raja Jawahar
    Dec 16 '18 at 10:09











  • youtu.be/K88WaSm3q8Y "Manifest Merger failed with multiple errors in Android Studio"?

    – Roman Pokrovskij
    Jan 18 at 16:59








1




1





remove line <activity android:name=".MainActivity"/> in your menifest.xml file

– Pankaj Talaviya
Oct 5 '16 at 4:59





remove line <activity android:name=".MainActivity"/> in your menifest.xml file

– Pankaj Talaviya
Oct 5 '16 at 4:59




10




10





For detailed information about the error you can check Gradle Console in Android Studio on the bottom right corner.

– DragonT
Jan 30 '17 at 20:40





For detailed information about the error you can check Gradle Console in Android Studio on the bottom right corner.

– DragonT
Jan 30 '17 at 20:40













I hope this link will be useful.

– Mortreza AD
Aug 19 '18 at 14:06





I hope this link will be useful.

– Mortreza AD
Aug 19 '18 at 14:06













I got the same error.But solved it by keeping the same minimum SDK in project and library.

– Raja Jawahar
Dec 16 '18 at 10:09





I got the same error.But solved it by keeping the same minimum SDK in project and library.

– Raja Jawahar
Dec 16 '18 at 10:09













youtu.be/K88WaSm3q8Y "Manifest Merger failed with multiple errors in Android Studio"?

– Roman Pokrovskij
Jan 18 at 16:59





youtu.be/K88WaSm3q8Y "Manifest Merger failed with multiple errors in Android Studio"?

– Roman Pokrovskij
Jan 18 at 16:59












22 Answers
22






active

oldest

votes


















100














Remove <activity android:name=".MainActivity"/> from your mainfest file. As you have already defined it as:



 <activity
android:name=".MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>


So, Manifest file showing ambiguity.






share|improve this answer































    460














    Open application manifest(AndroidManifest.xml) ,click on Merged Manifest.Check image



    enter image description here



    You can view error in right colum ,try to solve the error.It may help some one with same problem.






    share|improve this answer

































      52














      I was also facing same issues, and after lot of research found the solution:





      1. Your min sdk version should be same as of the modules you are using eg: your module min sdk version is 14 and your app min sdk version is 9 It should be same.

      2. If build version of your app and modules not same. Again it should same
        ** In short, your app build.gradle file and manifest should have same configurations**

      3. There's no duplicacy like same permissions added in manifest file twice, same activity mention twice.

      4. If you have delete any activity from your project, delete it from your manifest file as well.

      5. Sometimes its because of label, icon etc tag of manifest file:


      a) Add the xmlns:tools line in the manifest tag.



      b) Add tools:replace= or tools:ignore= in the application tag.




      Example:



      <manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.slinfy.ikharelimiteduk"
      xmlns:tools="http://schemas.android.com/tools"
      android:versionCode="1"
      android:versionName="1.0" >

      <application
      tools:replace="icon, label"
      android:label="myApp"
      android:name="com.example.MyApplication"
      android:allowBackup="true"
      android:hardwareAccelerated="false"
      android:icon="@drawable/ic_launcher"
      android:theme="@style/Theme.AppCompat" >
      </application>

      </manifest>




      1. If two dependencies are of not same version
        example: you are using dependency for appcompat v7:26.0.0 and for facebook com.facebook.android:facebook-android-sdk:[4,5)
        facebook uses cardview of version com.android.support:cardview-v7:25.3.1 and appcompat v7:26.0.0 uses cardview of version v7:26.0.0, So there is discripancy in two libraries and thus give error




      Error:Execution failed for task ':app:processDebugManifest'.




      Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(26.0.0-alpha1) from [com.android.support:appcompat-v7:26.0.0-alpha1] AndroidManifest.xml:27:9-38
      is also present at [com.android.support:cardview-v7:25.3.1] AndroidManifest.xml:24:9-31 value=(25.3.1).
      Suggestion: add 'tools:replace="android:value"' to element at AndroidManifest.xml:25:5-27:41 to override.




      So by using appcompat of version 25.3.1, We can avoid this error



      By considering above points in mind, you will get rid of this irritating issue.
      You can check my blog too
      https://wordpress.com/post/dhingrakimmi.wordpress.com/23






      share|improve this answer





















      • 1





        in my case it was due to theme of module I added so I used as tools:replace"icon,label,theme"

        – turbandroid
        Dec 23 '16 at 9:10











      • in my case it was due to theme of module I added so I used as tools:replace"icon,label,theme" and xmlns:tools="schemas.android.com/tools". thanks @O'one

        – alfo888_ibg
        Mar 23 '18 at 15:17



















      40














      For me THIS works -



      Finding Merging Errors in AndroidManifest.xml



      enter image description here



      Click on Merged Manifest in AndroidManifest.xml



      enter image description here



      You can view manifest merging error in right column. It may help to solve this problem.






      share|improve this answer



















      • 1





        This is a generic fix for this problem. This helps you find the real reason for any problem regarding this.

        – JoeGalind
        Aug 15 '18 at 14:44



















      11














      I was facing the same problem and I've just added one line in my manifest.xml and it worked for me.



      tools:replace="android:allowBackup,icon,theme,label,name"> 



      add this line under




      <application
      android:name=".MyApplication"
      android:allowBackup="true"
      android:icon="@drawable/launcher"
      android:label="@string/app_name"
      android:largeHeap="true"
      android:screenOrientation="portrait"
      android:supportsRtl="true"
      android:theme="@style/AppThemecustom"
      tools:replace="android:allowBackup,icon,theme,label">


      Hope it will help.






      share|improve this answer

































        9














        In addition to available solutions, please check this also.
        If you have set android:allowBackup="false" in your AndroidManifest.xml then there may be a conflict for android:allowBackup="true" in other dependencies.



        Solution

        As suggested by @CLIFFORD P Y, switch to Merged Manifest in your AndroidManifest.xml. Android Studio will suggest to add tools:replace="android:allowBackup" in <application /> in your AndroidManifest.xml.






        share|improve this answer































          7














          In my case it was showing an error because there was a redundancy in <uses-permission> element.
          So, please check in your AndroidManifest.xml file for the same.



          Android Studio version is 3.0.1



          Operating System is Windows 7



          Here is the screenshot for reference.



          Screen-shot which shows redundancy in manifest file.






          share|improve this answer































            6














            Usually occurs when you have errors in your manifest.Open AndroidManifest.xml .Click on the merged manifest tab.The errors can be seen there .Also include suggestions mentioned there.When I had a similar problem while importing com.google.android.gms.maps.model.LatLng ,it suggested me to include tools:overrideLibrary="com.google.android.gms.maps" in the application tag and the build was successful.






            share|improve this answer































              3














              My case i have fixed it by




              build.gradle(Module:app)




              defaultConfig {
              ----------
              multiDexEnabled true
              }
              dependencies {
              ...........
              implementation 'com.google.android.gms:play-services-gcm:11.0.2'
              implementation 'com.onesignal:OneSignal:3.+@aar'
              }


              This answer releted to OnSignal push notification






              share|improve this answer































                1














                for the past few days I was also going through the same issue. But after, a lot of research I finally found a solution for this.

                In order to solve this issue, what you need to do is:

                1. Check if your project's build.gradle file and the module's build.gradle file contain same versions of all dependencies.

                2. Make sure, your project's compileSdkVersion, buildToolsVersion, minSdkVersion and targetSdkVersion matches the one in the modules or libraries that you have added into the project.



                compileSdkVersion 25
                buildToolsVersion "25.0.0"
                defaultConfig {
                applicationId "com.example.appname"
                minSdkVersion 16
                targetSdkVersion 25
                versionCode 22
                versionName "2.0.3"

                }


                Hope, this helps.






                share|improve this answer































                  1














                  If after you add a Android Library Module and you get this error.

                  You can fix it by simple remove the android:label="@string/app_name" from the AndroidManifest.xml of your Android Library Module






                  share|improve this answer































                    1
















                    1. In AndroidManifest.xml:




                      • At application, add tools:replace="android:icon, android:theme and

                      • At the Manifest root, add xmlns:tools="http://schemas.android.com/tools




                    2. In build.gradle:




                      • At root, add useOldManifestMerger true








                    share|improve this answer

































                      1














                      Open your gradle console, then you see gradle suggest you to add the particular line (Like: tools:replace="android:allowBackup" or tools:replace="android:label" etc). Add that line into your manifest file under tag and sync gradle, that's it.






                      share|improve this answer































                        1














                        Just add below code in your project Manifest application tag...



                        <application
                        tools:node="replace">





                        share|improve this answer































                          1














                          In my case it happened for leaving some empty intent-filter inside the Activity tag



                              <activity
                          android:name=".MainActivity"
                          android:label="@string/app_name"
                          android:theme="@style/AppTheme.NoActionBar">

                          <intent-filter>

                          </intent-filter>

                          </activity>


                          So just removing them solved the problem.



                              <activity
                          android:name=".MainActivity"
                          android:label="@string/app_name"
                          android:theme="@style/AppTheme.NoActionBar">
                          </activity>





                          share|improve this answer































                            0














                            As a newbie to Android Studio, in my case, I had moved an existing project from Eclipse to Android Studio and found that there was a duplicate definition of an activity within my Manifest.xml that hadn't been picked up by Eclipse was shown as a Gradle error.



                            I found this by going to the Gradle Console (bottom right of the screen).






                            share|improve this answer































                              0














                              Happened with me twice when I refractor (Rename with SHIFT + F6) the name of a field in our files and it asks you to change it everywhere and we without paying attention change the name everywhere.
                              For example, if you have a variable name "id" in your Java class and you rename it with SHIFT + F6. If you don't pay attention to the next dialog which will ask you wherever else it is going to change the id and you tick check all it will change all the id in your layout files from the new value.






                              share|improve this answer































                                0














                                this is very simple error only occur when you define any activity call two time in mainifest.xml file Example like



                                <activity android:name="com.futuretech.mpboardexam.Game" ></activity>

                                //and launcher also------like that



                                //solution:use only one





                                share|improve this answer

































                                  0














                                  I was using the FirebaseUI Library along with the Facebook SDK Library, which was causing me the issue.



                                  compile 'com.firebaseui:firebase-ui-database:0.4.4'
                                  compile 'com.facebook.android:facebook-android-sdk:[4,5)'


                                  And from here, I got rid of this issue.



                                  With the latest update of FirebaseUI library, previous version of Facebook SDK is also a part of it.



                                  If you are using the both the libraries, please remove the Facebook SDK Library.






                                  share|improve this answer

































                                    0














                                    Put this at the end of your app module build.gradle:



                                    configurations.all {
                                    resolutionStrategy.eachDependency { DependencyResolveDetails details ->
                                    def requested = details.requested
                                    if (requested.group == 'com.android.support') {
                                    if (!requested.name.startsWith("multidex")) {
                                    details.useVersion '25.3.0'
                                    }
                                    }
                                    }}


                                    from this






                                    share|improve this answer































                                      0














                                      Supplement the answer Phan Van Linh. I deleted these lines:



                                        android:icon="@mipmap/ic_launcher"
                                      android:label="name"





                                      share|improve this answer































                                        0














                                        The minium sdk version should be same as of the modules/lib you are using
                                        For example: Your module min sdk version is 26 and your app min sdk version is 21 It should be same.






                                        share|improve this answer































                                          22 Answers
                                          22






                                          active

                                          oldest

                                          votes








                                          22 Answers
                                          22






                                          active

                                          oldest

                                          votes









                                          active

                                          oldest

                                          votes






                                          active

                                          oldest

                                          votes









                                          100














                                          Remove <activity android:name=".MainActivity"/> from your mainfest file. As you have already defined it as:



                                           <activity
                                          android:name=".MainActivity"
                                          android:label="@string/app_name" >
                                          <intent-filter>
                                          <action android:name="android.intent.action.MAIN" />

                                          <category android:name="android.intent.category.LAUNCHER" />
                                          </intent-filter>
                                          </activity>


                                          So, Manifest file showing ambiguity.






                                          share|improve this answer




























                                            100














                                            Remove <activity android:name=".MainActivity"/> from your mainfest file. As you have already defined it as:



                                             <activity
                                            android:name=".MainActivity"
                                            android:label="@string/app_name" >
                                            <intent-filter>
                                            <action android:name="android.intent.action.MAIN" />

                                            <category android:name="android.intent.category.LAUNCHER" />
                                            </intent-filter>
                                            </activity>


                                            So, Manifest file showing ambiguity.






                                            share|improve this answer


























                                              100












                                              100








                                              100







                                              Remove <activity android:name=".MainActivity"/> from your mainfest file. As you have already defined it as:



                                               <activity
                                              android:name=".MainActivity"
                                              android:label="@string/app_name" >
                                              <intent-filter>
                                              <action android:name="android.intent.action.MAIN" />

                                              <category android:name="android.intent.category.LAUNCHER" />
                                              </intent-filter>
                                              </activity>


                                              So, Manifest file showing ambiguity.






                                              share|improve this answer













                                              Remove <activity android:name=".MainActivity"/> from your mainfest file. As you have already defined it as:



                                               <activity
                                              android:name=".MainActivity"
                                              android:label="@string/app_name" >
                                              <intent-filter>
                                              <action android:name="android.intent.action.MAIN" />

                                              <category android:name="android.intent.category.LAUNCHER" />
                                              </intent-filter>
                                              </activity>


                                              So, Manifest file showing ambiguity.







                                              share|improve this answer












                                              share|improve this answer



                                              share|improve this answer










                                              answered Mar 7 '16 at 12:57









                                              Android GeekAndroid Geek

                                              4,4992823




                                              4,4992823

























                                                  460














                                                  Open application manifest(AndroidManifest.xml) ,click on Merged Manifest.Check image



                                                  enter image description here



                                                  You can view error in right colum ,try to solve the error.It may help some one with same problem.






                                                  share|improve this answer






























                                                    460














                                                    Open application manifest(AndroidManifest.xml) ,click on Merged Manifest.Check image



                                                    enter image description here



                                                    You can view error in right colum ,try to solve the error.It may help some one with same problem.






                                                    share|improve this answer




























                                                      460












                                                      460








                                                      460







                                                      Open application manifest(AndroidManifest.xml) ,click on Merged Manifest.Check image



                                                      enter image description here



                                                      You can view error in right colum ,try to solve the error.It may help some one with same problem.






                                                      share|improve this answer















                                                      Open application manifest(AndroidManifest.xml) ,click on Merged Manifest.Check image



                                                      enter image description here



                                                      You can view error in right colum ,try to solve the error.It may help some one with same problem.







                                                      share|improve this answer














                                                      share|improve this answer



                                                      share|improve this answer








                                                      edited Dec 3 '18 at 5:13

























                                                      answered Feb 3 '17 at 11:49









                                                      CLIFFORD P YCLIFFORD P Y

                                                      5,23831424




                                                      5,23831424























                                                          52














                                                          I was also facing same issues, and after lot of research found the solution:





                                                          1. Your min sdk version should be same as of the modules you are using eg: your module min sdk version is 14 and your app min sdk version is 9 It should be same.

                                                          2. If build version of your app and modules not same. Again it should same
                                                            ** In short, your app build.gradle file and manifest should have same configurations**

                                                          3. There's no duplicacy like same permissions added in manifest file twice, same activity mention twice.

                                                          4. If you have delete any activity from your project, delete it from your manifest file as well.

                                                          5. Sometimes its because of label, icon etc tag of manifest file:


                                                          a) Add the xmlns:tools line in the manifest tag.



                                                          b) Add tools:replace= or tools:ignore= in the application tag.




                                                          Example:



                                                          <manifest xmlns:android="http://schemas.android.com/apk/res/android"
                                                          package="com.slinfy.ikharelimiteduk"
                                                          xmlns:tools="http://schemas.android.com/tools"
                                                          android:versionCode="1"
                                                          android:versionName="1.0" >

                                                          <application
                                                          tools:replace="icon, label"
                                                          android:label="myApp"
                                                          android:name="com.example.MyApplication"
                                                          android:allowBackup="true"
                                                          android:hardwareAccelerated="false"
                                                          android:icon="@drawable/ic_launcher"
                                                          android:theme="@style/Theme.AppCompat" >
                                                          </application>

                                                          </manifest>




                                                          1. If two dependencies are of not same version
                                                            example: you are using dependency for appcompat v7:26.0.0 and for facebook com.facebook.android:facebook-android-sdk:[4,5)
                                                            facebook uses cardview of version com.android.support:cardview-v7:25.3.1 and appcompat v7:26.0.0 uses cardview of version v7:26.0.0, So there is discripancy in two libraries and thus give error




                                                          Error:Execution failed for task ':app:processDebugManifest'.




                                                          Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(26.0.0-alpha1) from [com.android.support:appcompat-v7:26.0.0-alpha1] AndroidManifest.xml:27:9-38
                                                          is also present at [com.android.support:cardview-v7:25.3.1] AndroidManifest.xml:24:9-31 value=(25.3.1).
                                                          Suggestion: add 'tools:replace="android:value"' to element at AndroidManifest.xml:25:5-27:41 to override.




                                                          So by using appcompat of version 25.3.1, We can avoid this error



                                                          By considering above points in mind, you will get rid of this irritating issue.
                                                          You can check my blog too
                                                          https://wordpress.com/post/dhingrakimmi.wordpress.com/23






                                                          share|improve this answer





















                                                          • 1





                                                            in my case it was due to theme of module I added so I used as tools:replace"icon,label,theme"

                                                            – turbandroid
                                                            Dec 23 '16 at 9:10











                                                          • in my case it was due to theme of module I added so I used as tools:replace"icon,label,theme" and xmlns:tools="schemas.android.com/tools". thanks @O'one

                                                            – alfo888_ibg
                                                            Mar 23 '18 at 15:17
















                                                          52














                                                          I was also facing same issues, and after lot of research found the solution:





                                                          1. Your min sdk version should be same as of the modules you are using eg: your module min sdk version is 14 and your app min sdk version is 9 It should be same.

                                                          2. If build version of your app and modules not same. Again it should same
                                                            ** In short, your app build.gradle file and manifest should have same configurations**

                                                          3. There's no duplicacy like same permissions added in manifest file twice, same activity mention twice.

                                                          4. If you have delete any activity from your project, delete it from your manifest file as well.

                                                          5. Sometimes its because of label, icon etc tag of manifest file:


                                                          a) Add the xmlns:tools line in the manifest tag.



                                                          b) Add tools:replace= or tools:ignore= in the application tag.




                                                          Example:



                                                          <manifest xmlns:android="http://schemas.android.com/apk/res/android"
                                                          package="com.slinfy.ikharelimiteduk"
                                                          xmlns:tools="http://schemas.android.com/tools"
                                                          android:versionCode="1"
                                                          android:versionName="1.0" >

                                                          <application
                                                          tools:replace="icon, label"
                                                          android:label="myApp"
                                                          android:name="com.example.MyApplication"
                                                          android:allowBackup="true"
                                                          android:hardwareAccelerated="false"
                                                          android:icon="@drawable/ic_launcher"
                                                          android:theme="@style/Theme.AppCompat" >
                                                          </application>

                                                          </manifest>




                                                          1. If two dependencies are of not same version
                                                            example: you are using dependency for appcompat v7:26.0.0 and for facebook com.facebook.android:facebook-android-sdk:[4,5)
                                                            facebook uses cardview of version com.android.support:cardview-v7:25.3.1 and appcompat v7:26.0.0 uses cardview of version v7:26.0.0, So there is discripancy in two libraries and thus give error




                                                          Error:Execution failed for task ':app:processDebugManifest'.




                                                          Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(26.0.0-alpha1) from [com.android.support:appcompat-v7:26.0.0-alpha1] AndroidManifest.xml:27:9-38
                                                          is also present at [com.android.support:cardview-v7:25.3.1] AndroidManifest.xml:24:9-31 value=(25.3.1).
                                                          Suggestion: add 'tools:replace="android:value"' to element at AndroidManifest.xml:25:5-27:41 to override.




                                                          So by using appcompat of version 25.3.1, We can avoid this error



                                                          By considering above points in mind, you will get rid of this irritating issue.
                                                          You can check my blog too
                                                          https://wordpress.com/post/dhingrakimmi.wordpress.com/23






                                                          share|improve this answer





















                                                          • 1





                                                            in my case it was due to theme of module I added so I used as tools:replace"icon,label,theme"

                                                            – turbandroid
                                                            Dec 23 '16 at 9:10











                                                          • in my case it was due to theme of module I added so I used as tools:replace"icon,label,theme" and xmlns:tools="schemas.android.com/tools". thanks @O'one

                                                            – alfo888_ibg
                                                            Mar 23 '18 at 15:17














                                                          52












                                                          52








                                                          52







                                                          I was also facing same issues, and after lot of research found the solution:





                                                          1. Your min sdk version should be same as of the modules you are using eg: your module min sdk version is 14 and your app min sdk version is 9 It should be same.

                                                          2. If build version of your app and modules not same. Again it should same
                                                            ** In short, your app build.gradle file and manifest should have same configurations**

                                                          3. There's no duplicacy like same permissions added in manifest file twice, same activity mention twice.

                                                          4. If you have delete any activity from your project, delete it from your manifest file as well.

                                                          5. Sometimes its because of label, icon etc tag of manifest file:


                                                          a) Add the xmlns:tools line in the manifest tag.



                                                          b) Add tools:replace= or tools:ignore= in the application tag.




                                                          Example:



                                                          <manifest xmlns:android="http://schemas.android.com/apk/res/android"
                                                          package="com.slinfy.ikharelimiteduk"
                                                          xmlns:tools="http://schemas.android.com/tools"
                                                          android:versionCode="1"
                                                          android:versionName="1.0" >

                                                          <application
                                                          tools:replace="icon, label"
                                                          android:label="myApp"
                                                          android:name="com.example.MyApplication"
                                                          android:allowBackup="true"
                                                          android:hardwareAccelerated="false"
                                                          android:icon="@drawable/ic_launcher"
                                                          android:theme="@style/Theme.AppCompat" >
                                                          </application>

                                                          </manifest>




                                                          1. If two dependencies are of not same version
                                                            example: you are using dependency for appcompat v7:26.0.0 and for facebook com.facebook.android:facebook-android-sdk:[4,5)
                                                            facebook uses cardview of version com.android.support:cardview-v7:25.3.1 and appcompat v7:26.0.0 uses cardview of version v7:26.0.0, So there is discripancy in two libraries and thus give error




                                                          Error:Execution failed for task ':app:processDebugManifest'.




                                                          Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(26.0.0-alpha1) from [com.android.support:appcompat-v7:26.0.0-alpha1] AndroidManifest.xml:27:9-38
                                                          is also present at [com.android.support:cardview-v7:25.3.1] AndroidManifest.xml:24:9-31 value=(25.3.1).
                                                          Suggestion: add 'tools:replace="android:value"' to element at AndroidManifest.xml:25:5-27:41 to override.




                                                          So by using appcompat of version 25.3.1, We can avoid this error



                                                          By considering above points in mind, you will get rid of this irritating issue.
                                                          You can check my blog too
                                                          https://wordpress.com/post/dhingrakimmi.wordpress.com/23






                                                          share|improve this answer















                                                          I was also facing same issues, and after lot of research found the solution:





                                                          1. Your min sdk version should be same as of the modules you are using eg: your module min sdk version is 14 and your app min sdk version is 9 It should be same.

                                                          2. If build version of your app and modules not same. Again it should same
                                                            ** In short, your app build.gradle file and manifest should have same configurations**

                                                          3. There's no duplicacy like same permissions added in manifest file twice, same activity mention twice.

                                                          4. If you have delete any activity from your project, delete it from your manifest file as well.

                                                          5. Sometimes its because of label, icon etc tag of manifest file:


                                                          a) Add the xmlns:tools line in the manifest tag.



                                                          b) Add tools:replace= or tools:ignore= in the application tag.




                                                          Example:



                                                          <manifest xmlns:android="http://schemas.android.com/apk/res/android"
                                                          package="com.slinfy.ikharelimiteduk"
                                                          xmlns:tools="http://schemas.android.com/tools"
                                                          android:versionCode="1"
                                                          android:versionName="1.0" >

                                                          <application
                                                          tools:replace="icon, label"
                                                          android:label="myApp"
                                                          android:name="com.example.MyApplication"
                                                          android:allowBackup="true"
                                                          android:hardwareAccelerated="false"
                                                          android:icon="@drawable/ic_launcher"
                                                          android:theme="@style/Theme.AppCompat" >
                                                          </application>

                                                          </manifest>




                                                          1. If two dependencies are of not same version
                                                            example: you are using dependency for appcompat v7:26.0.0 and for facebook com.facebook.android:facebook-android-sdk:[4,5)
                                                            facebook uses cardview of version com.android.support:cardview-v7:25.3.1 and appcompat v7:26.0.0 uses cardview of version v7:26.0.0, So there is discripancy in two libraries and thus give error




                                                          Error:Execution failed for task ':app:processDebugManifest'.




                                                          Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(26.0.0-alpha1) from [com.android.support:appcompat-v7:26.0.0-alpha1] AndroidManifest.xml:27:9-38
                                                          is also present at [com.android.support:cardview-v7:25.3.1] AndroidManifest.xml:24:9-31 value=(25.3.1).
                                                          Suggestion: add 'tools:replace="android:value"' to element at AndroidManifest.xml:25:5-27:41 to override.




                                                          So by using appcompat of version 25.3.1, We can avoid this error



                                                          By considering above points in mind, you will get rid of this irritating issue.
                                                          You can check my blog too
                                                          https://wordpress.com/post/dhingrakimmi.wordpress.com/23







                                                          share|improve this answer














                                                          share|improve this answer



                                                          share|improve this answer








                                                          edited Sep 10 '17 at 17:21

























                                                          answered Sep 15 '16 at 11:13









                                                          Kimmi DhingraKimmi Dhingra

                                                          1,4711119




                                                          1,4711119








                                                          • 1





                                                            in my case it was due to theme of module I added so I used as tools:replace"icon,label,theme"

                                                            – turbandroid
                                                            Dec 23 '16 at 9:10











                                                          • in my case it was due to theme of module I added so I used as tools:replace"icon,label,theme" and xmlns:tools="schemas.android.com/tools". thanks @O'one

                                                            – alfo888_ibg
                                                            Mar 23 '18 at 15:17














                                                          • 1





                                                            in my case it was due to theme of module I added so I used as tools:replace"icon,label,theme"

                                                            – turbandroid
                                                            Dec 23 '16 at 9:10











                                                          • in my case it was due to theme of module I added so I used as tools:replace"icon,label,theme" and xmlns:tools="schemas.android.com/tools". thanks @O'one

                                                            – alfo888_ibg
                                                            Mar 23 '18 at 15:17








                                                          1




                                                          1





                                                          in my case it was due to theme of module I added so I used as tools:replace"icon,label,theme"

                                                          – turbandroid
                                                          Dec 23 '16 at 9:10





                                                          in my case it was due to theme of module I added so I used as tools:replace"icon,label,theme"

                                                          – turbandroid
                                                          Dec 23 '16 at 9:10













                                                          in my case it was due to theme of module I added so I used as tools:replace"icon,label,theme" and xmlns:tools="schemas.android.com/tools". thanks @O'one

                                                          – alfo888_ibg
                                                          Mar 23 '18 at 15:17





                                                          in my case it was due to theme of module I added so I used as tools:replace"icon,label,theme" and xmlns:tools="schemas.android.com/tools". thanks @O'one

                                                          – alfo888_ibg
                                                          Mar 23 '18 at 15:17











                                                          40














                                                          For me THIS works -



                                                          Finding Merging Errors in AndroidManifest.xml



                                                          enter image description here



                                                          Click on Merged Manifest in AndroidManifest.xml



                                                          enter image description here



                                                          You can view manifest merging error in right column. It may help to solve this problem.






                                                          share|improve this answer



















                                                          • 1





                                                            This is a generic fix for this problem. This helps you find the real reason for any problem regarding this.

                                                            – JoeGalind
                                                            Aug 15 '18 at 14:44
















                                                          40














                                                          For me THIS works -



                                                          Finding Merging Errors in AndroidManifest.xml



                                                          enter image description here



                                                          Click on Merged Manifest in AndroidManifest.xml



                                                          enter image description here



                                                          You can view manifest merging error in right column. It may help to solve this problem.






                                                          share|improve this answer



















                                                          • 1





                                                            This is a generic fix for this problem. This helps you find the real reason for any problem regarding this.

                                                            – JoeGalind
                                                            Aug 15 '18 at 14:44














                                                          40












                                                          40








                                                          40







                                                          For me THIS works -



                                                          Finding Merging Errors in AndroidManifest.xml



                                                          enter image description here



                                                          Click on Merged Manifest in AndroidManifest.xml



                                                          enter image description here



                                                          You can view manifest merging error in right column. It may help to solve this problem.






                                                          share|improve this answer













                                                          For me THIS works -



                                                          Finding Merging Errors in AndroidManifest.xml



                                                          enter image description here



                                                          Click on Merged Manifest in AndroidManifest.xml



                                                          enter image description here



                                                          You can view manifest merging error in right column. It may help to solve this problem.







                                                          share|improve this answer












                                                          share|improve this answer



                                                          share|improve this answer










                                                          answered Aug 13 '18 at 8:25









                                                          AnirbanAnirban

                                                          2,13932957




                                                          2,13932957








                                                          • 1





                                                            This is a generic fix for this problem. This helps you find the real reason for any problem regarding this.

                                                            – JoeGalind
                                                            Aug 15 '18 at 14:44














                                                          • 1





                                                            This is a generic fix for this problem. This helps you find the real reason for any problem regarding this.

                                                            – JoeGalind
                                                            Aug 15 '18 at 14:44








                                                          1




                                                          1





                                                          This is a generic fix for this problem. This helps you find the real reason for any problem regarding this.

                                                          – JoeGalind
                                                          Aug 15 '18 at 14:44





                                                          This is a generic fix for this problem. This helps you find the real reason for any problem regarding this.

                                                          – JoeGalind
                                                          Aug 15 '18 at 14:44











                                                          11














                                                          I was facing the same problem and I've just added one line in my manifest.xml and it worked for me.



                                                          tools:replace="android:allowBackup,icon,theme,label,name"> 



                                                          add this line under




                                                          <application
                                                          android:name=".MyApplication"
                                                          android:allowBackup="true"
                                                          android:icon="@drawable/launcher"
                                                          android:label="@string/app_name"
                                                          android:largeHeap="true"
                                                          android:screenOrientation="portrait"
                                                          android:supportsRtl="true"
                                                          android:theme="@style/AppThemecustom"
                                                          tools:replace="android:allowBackup,icon,theme,label">


                                                          Hope it will help.






                                                          share|improve this answer






























                                                            11














                                                            I was facing the same problem and I've just added one line in my manifest.xml and it worked for me.



                                                            tools:replace="android:allowBackup,icon,theme,label,name"> 



                                                            add this line under




                                                            <application
                                                            android:name=".MyApplication"
                                                            android:allowBackup="true"
                                                            android:icon="@drawable/launcher"
                                                            android:label="@string/app_name"
                                                            android:largeHeap="true"
                                                            android:screenOrientation="portrait"
                                                            android:supportsRtl="true"
                                                            android:theme="@style/AppThemecustom"
                                                            tools:replace="android:allowBackup,icon,theme,label">


                                                            Hope it will help.






                                                            share|improve this answer




























                                                              11












                                                              11








                                                              11







                                                              I was facing the same problem and I've just added one line in my manifest.xml and it worked for me.



                                                              tools:replace="android:allowBackup,icon,theme,label,name"> 



                                                              add this line under




                                                              <application
                                                              android:name=".MyApplication"
                                                              android:allowBackup="true"
                                                              android:icon="@drawable/launcher"
                                                              android:label="@string/app_name"
                                                              android:largeHeap="true"
                                                              android:screenOrientation="portrait"
                                                              android:supportsRtl="true"
                                                              android:theme="@style/AppThemecustom"
                                                              tools:replace="android:allowBackup,icon,theme,label">


                                                              Hope it will help.






                                                              share|improve this answer















                                                              I was facing the same problem and I've just added one line in my manifest.xml and it worked for me.



                                                              tools:replace="android:allowBackup,icon,theme,label,name"> 



                                                              add this line under




                                                              <application
                                                              android:name=".MyApplication"
                                                              android:allowBackup="true"
                                                              android:icon="@drawable/launcher"
                                                              android:label="@string/app_name"
                                                              android:largeHeap="true"
                                                              android:screenOrientation="portrait"
                                                              android:supportsRtl="true"
                                                              android:theme="@style/AppThemecustom"
                                                              tools:replace="android:allowBackup,icon,theme,label">


                                                              Hope it will help.







                                                              share|improve this answer














                                                              share|improve this answer



                                                              share|improve this answer








                                                              edited Feb 20 '18 at 10:32









                                                              jeet.chanchawat

                                                              3,72442153




                                                              3,72442153










                                                              answered Apr 1 '17 at 7:57









                                                              Pre_hackerPre_hacker

                                                              8751217




                                                              8751217























                                                                  9














                                                                  In addition to available solutions, please check this also.
                                                                  If you have set android:allowBackup="false" in your AndroidManifest.xml then there may be a conflict for android:allowBackup="true" in other dependencies.



                                                                  Solution

                                                                  As suggested by @CLIFFORD P Y, switch to Merged Manifest in your AndroidManifest.xml. Android Studio will suggest to add tools:replace="android:allowBackup" in <application /> in your AndroidManifest.xml.






                                                                  share|improve this answer




























                                                                    9














                                                                    In addition to available solutions, please check this also.
                                                                    If you have set android:allowBackup="false" in your AndroidManifest.xml then there may be a conflict for android:allowBackup="true" in other dependencies.



                                                                    Solution

                                                                    As suggested by @CLIFFORD P Y, switch to Merged Manifest in your AndroidManifest.xml. Android Studio will suggest to add tools:replace="android:allowBackup" in <application /> in your AndroidManifest.xml.






                                                                    share|improve this answer


























                                                                      9












                                                                      9








                                                                      9







                                                                      In addition to available solutions, please check this also.
                                                                      If you have set android:allowBackup="false" in your AndroidManifest.xml then there may be a conflict for android:allowBackup="true" in other dependencies.



                                                                      Solution

                                                                      As suggested by @CLIFFORD P Y, switch to Merged Manifest in your AndroidManifest.xml. Android Studio will suggest to add tools:replace="android:allowBackup" in <application /> in your AndroidManifest.xml.






                                                                      share|improve this answer













                                                                      In addition to available solutions, please check this also.
                                                                      If you have set android:allowBackup="false" in your AndroidManifest.xml then there may be a conflict for android:allowBackup="true" in other dependencies.



                                                                      Solution

                                                                      As suggested by @CLIFFORD P Y, switch to Merged Manifest in your AndroidManifest.xml. Android Studio will suggest to add tools:replace="android:allowBackup" in <application /> in your AndroidManifest.xml.







                                                                      share|improve this answer












                                                                      share|improve this answer



                                                                      share|improve this answer










                                                                      answered Mar 2 '17 at 5:57









                                                                      Chintan ShahChintan Shah

                                                                      79411320




                                                                      79411320























                                                                          7














                                                                          In my case it was showing an error because there was a redundancy in <uses-permission> element.
                                                                          So, please check in your AndroidManifest.xml file for the same.



                                                                          Android Studio version is 3.0.1



                                                                          Operating System is Windows 7



                                                                          Here is the screenshot for reference.



                                                                          Screen-shot which shows redundancy in manifest file.






                                                                          share|improve this answer




























                                                                            7














                                                                            In my case it was showing an error because there was a redundancy in <uses-permission> element.
                                                                            So, please check in your AndroidManifest.xml file for the same.



                                                                            Android Studio version is 3.0.1



                                                                            Operating System is Windows 7



                                                                            Here is the screenshot for reference.



                                                                            Screen-shot which shows redundancy in manifest file.






                                                                            share|improve this answer


























                                                                              7












                                                                              7








                                                                              7







                                                                              In my case it was showing an error because there was a redundancy in <uses-permission> element.
                                                                              So, please check in your AndroidManifest.xml file for the same.



                                                                              Android Studio version is 3.0.1



                                                                              Operating System is Windows 7



                                                                              Here is the screenshot for reference.



                                                                              Screen-shot which shows redundancy in manifest file.






                                                                              share|improve this answer













                                                                              In my case it was showing an error because there was a redundancy in <uses-permission> element.
                                                                              So, please check in your AndroidManifest.xml file for the same.



                                                                              Android Studio version is 3.0.1



                                                                              Operating System is Windows 7



                                                                              Here is the screenshot for reference.



                                                                              Screen-shot which shows redundancy in manifest file.







                                                                              share|improve this answer












                                                                              share|improve this answer



                                                                              share|improve this answer










                                                                              answered Apr 30 '18 at 16:22









                                                                              Parth PatelParth Patel

                                                                              52667




                                                                              52667























                                                                                  6














                                                                                  Usually occurs when you have errors in your manifest.Open AndroidManifest.xml .Click on the merged manifest tab.The errors can be seen there .Also include suggestions mentioned there.When I had a similar problem while importing com.google.android.gms.maps.model.LatLng ,it suggested me to include tools:overrideLibrary="com.google.android.gms.maps" in the application tag and the build was successful.






                                                                                  share|improve this answer




























                                                                                    6














                                                                                    Usually occurs when you have errors in your manifest.Open AndroidManifest.xml .Click on the merged manifest tab.The errors can be seen there .Also include suggestions mentioned there.When I had a similar problem while importing com.google.android.gms.maps.model.LatLng ,it suggested me to include tools:overrideLibrary="com.google.android.gms.maps" in the application tag and the build was successful.






                                                                                    share|improve this answer


























                                                                                      6












                                                                                      6








                                                                                      6







                                                                                      Usually occurs when you have errors in your manifest.Open AndroidManifest.xml .Click on the merged manifest tab.The errors can be seen there .Also include suggestions mentioned there.When I had a similar problem while importing com.google.android.gms.maps.model.LatLng ,it suggested me to include tools:overrideLibrary="com.google.android.gms.maps" in the application tag and the build was successful.






                                                                                      share|improve this answer













                                                                                      Usually occurs when you have errors in your manifest.Open AndroidManifest.xml .Click on the merged manifest tab.The errors can be seen there .Also include suggestions mentioned there.When I had a similar problem while importing com.google.android.gms.maps.model.LatLng ,it suggested me to include tools:overrideLibrary="com.google.android.gms.maps" in the application tag and the build was successful.







                                                                                      share|improve this answer












                                                                                      share|improve this answer



                                                                                      share|improve this answer










                                                                                      answered Jul 28 '17 at 12:22









                                                                                      Archana PrabhuArchana Prabhu

                                                                                      10713




                                                                                      10713























                                                                                          3














                                                                                          My case i have fixed it by




                                                                                          build.gradle(Module:app)




                                                                                          defaultConfig {
                                                                                          ----------
                                                                                          multiDexEnabled true
                                                                                          }
                                                                                          dependencies {
                                                                                          ...........
                                                                                          implementation 'com.google.android.gms:play-services-gcm:11.0.2'
                                                                                          implementation 'com.onesignal:OneSignal:3.+@aar'
                                                                                          }


                                                                                          This answer releted to OnSignal push notification






                                                                                          share|improve this answer




























                                                                                            3














                                                                                            My case i have fixed it by




                                                                                            build.gradle(Module:app)




                                                                                            defaultConfig {
                                                                                            ----------
                                                                                            multiDexEnabled true
                                                                                            }
                                                                                            dependencies {
                                                                                            ...........
                                                                                            implementation 'com.google.android.gms:play-services-gcm:11.0.2'
                                                                                            implementation 'com.onesignal:OneSignal:3.+@aar'
                                                                                            }


                                                                                            This answer releted to OnSignal push notification






                                                                                            share|improve this answer


























                                                                                              3












                                                                                              3








                                                                                              3







                                                                                              My case i have fixed it by




                                                                                              build.gradle(Module:app)




                                                                                              defaultConfig {
                                                                                              ----------
                                                                                              multiDexEnabled true
                                                                                              }
                                                                                              dependencies {
                                                                                              ...........
                                                                                              implementation 'com.google.android.gms:play-services-gcm:11.0.2'
                                                                                              implementation 'com.onesignal:OneSignal:3.+@aar'
                                                                                              }


                                                                                              This answer releted to OnSignal push notification






                                                                                              share|improve this answer













                                                                                              My case i have fixed it by




                                                                                              build.gradle(Module:app)




                                                                                              defaultConfig {
                                                                                              ----------
                                                                                              multiDexEnabled true
                                                                                              }
                                                                                              dependencies {
                                                                                              ...........
                                                                                              implementation 'com.google.android.gms:play-services-gcm:11.0.2'
                                                                                              implementation 'com.onesignal:OneSignal:3.+@aar'
                                                                                              }


                                                                                              This answer releted to OnSignal push notification







                                                                                              share|improve this answer












                                                                                              share|improve this answer



                                                                                              share|improve this answer










                                                                                              answered Mar 29 '18 at 14:17









                                                                                              Md. ShofiullaMd. Shofiulla

                                                                                              314




                                                                                              314























                                                                                                  1














                                                                                                  for the past few days I was also going through the same issue. But after, a lot of research I finally found a solution for this.

                                                                                                  In order to solve this issue, what you need to do is:

                                                                                                  1. Check if your project's build.gradle file and the module's build.gradle file contain same versions of all dependencies.

                                                                                                  2. Make sure, your project's compileSdkVersion, buildToolsVersion, minSdkVersion and targetSdkVersion matches the one in the modules or libraries that you have added into the project.



                                                                                                  compileSdkVersion 25
                                                                                                  buildToolsVersion "25.0.0"
                                                                                                  defaultConfig {
                                                                                                  applicationId "com.example.appname"
                                                                                                  minSdkVersion 16
                                                                                                  targetSdkVersion 25
                                                                                                  versionCode 22
                                                                                                  versionName "2.0.3"

                                                                                                  }


                                                                                                  Hope, this helps.






                                                                                                  share|improve this answer




























                                                                                                    1














                                                                                                    for the past few days I was also going through the same issue. But after, a lot of research I finally found a solution for this.

                                                                                                    In order to solve this issue, what you need to do is:

                                                                                                    1. Check if your project's build.gradle file and the module's build.gradle file contain same versions of all dependencies.

                                                                                                    2. Make sure, your project's compileSdkVersion, buildToolsVersion, minSdkVersion and targetSdkVersion matches the one in the modules or libraries that you have added into the project.



                                                                                                    compileSdkVersion 25
                                                                                                    buildToolsVersion "25.0.0"
                                                                                                    defaultConfig {
                                                                                                    applicationId "com.example.appname"
                                                                                                    minSdkVersion 16
                                                                                                    targetSdkVersion 25
                                                                                                    versionCode 22
                                                                                                    versionName "2.0.3"

                                                                                                    }


                                                                                                    Hope, this helps.






                                                                                                    share|improve this answer


























                                                                                                      1












                                                                                                      1








                                                                                                      1







                                                                                                      for the past few days I was also going through the same issue. But after, a lot of research I finally found a solution for this.

                                                                                                      In order to solve this issue, what you need to do is:

                                                                                                      1. Check if your project's build.gradle file and the module's build.gradle file contain same versions of all dependencies.

                                                                                                      2. Make sure, your project's compileSdkVersion, buildToolsVersion, minSdkVersion and targetSdkVersion matches the one in the modules or libraries that you have added into the project.



                                                                                                      compileSdkVersion 25
                                                                                                      buildToolsVersion "25.0.0"
                                                                                                      defaultConfig {
                                                                                                      applicationId "com.example.appname"
                                                                                                      minSdkVersion 16
                                                                                                      targetSdkVersion 25
                                                                                                      versionCode 22
                                                                                                      versionName "2.0.3"

                                                                                                      }


                                                                                                      Hope, this helps.






                                                                                                      share|improve this answer













                                                                                                      for the past few days I was also going through the same issue. But after, a lot of research I finally found a solution for this.

                                                                                                      In order to solve this issue, what you need to do is:

                                                                                                      1. Check if your project's build.gradle file and the module's build.gradle file contain same versions of all dependencies.

                                                                                                      2. Make sure, your project's compileSdkVersion, buildToolsVersion, minSdkVersion and targetSdkVersion matches the one in the modules or libraries that you have added into the project.



                                                                                                      compileSdkVersion 25
                                                                                                      buildToolsVersion "25.0.0"
                                                                                                      defaultConfig {
                                                                                                      applicationId "com.example.appname"
                                                                                                      minSdkVersion 16
                                                                                                      targetSdkVersion 25
                                                                                                      versionCode 22
                                                                                                      versionName "2.0.3"

                                                                                                      }


                                                                                                      Hope, this helps.







                                                                                                      share|improve this answer












                                                                                                      share|improve this answer



                                                                                                      share|improve this answer










                                                                                                      answered Apr 8 '17 at 16:47









                                                                                                      Rahul Deep SinghRahul Deep Singh

                                                                                                      1044




                                                                                                      1044























                                                                                                          1














                                                                                                          If after you add a Android Library Module and you get this error.

                                                                                                          You can fix it by simple remove the android:label="@string/app_name" from the AndroidManifest.xml of your Android Library Module






                                                                                                          share|improve this answer




























                                                                                                            1














                                                                                                            If after you add a Android Library Module and you get this error.

                                                                                                            You can fix it by simple remove the android:label="@string/app_name" from the AndroidManifest.xml of your Android Library Module






                                                                                                            share|improve this answer


























                                                                                                              1












                                                                                                              1








                                                                                                              1







                                                                                                              If after you add a Android Library Module and you get this error.

                                                                                                              You can fix it by simple remove the android:label="@string/app_name" from the AndroidManifest.xml of your Android Library Module






                                                                                                              share|improve this answer













                                                                                                              If after you add a Android Library Module and you get this error.

                                                                                                              You can fix it by simple remove the android:label="@string/app_name" from the AndroidManifest.xml of your Android Library Module







                                                                                                              share|improve this answer












                                                                                                              share|improve this answer



                                                                                                              share|improve this answer










                                                                                                              answered Jun 7 '17 at 2:33









                                                                                                              Phan Van LinhPhan Van Linh

                                                                                                              20.2k11109136




                                                                                                              20.2k11109136























                                                                                                                  1
















                                                                                                                  1. In AndroidManifest.xml:




                                                                                                                    • At application, add tools:replace="android:icon, android:theme and

                                                                                                                    • At the Manifest root, add xmlns:tools="http://schemas.android.com/tools




                                                                                                                  2. In build.gradle:




                                                                                                                    • At root, add useOldManifestMerger true








                                                                                                                  share|improve this answer






























                                                                                                                    1
















                                                                                                                    1. In AndroidManifest.xml:




                                                                                                                      • At application, add tools:replace="android:icon, android:theme and

                                                                                                                      • At the Manifest root, add xmlns:tools="http://schemas.android.com/tools




                                                                                                                    2. In build.gradle:




                                                                                                                      • At root, add useOldManifestMerger true








                                                                                                                    share|improve this answer




























                                                                                                                      1












                                                                                                                      1








                                                                                                                      1









                                                                                                                      1. In AndroidManifest.xml:




                                                                                                                        • At application, add tools:replace="android:icon, android:theme and

                                                                                                                        • At the Manifest root, add xmlns:tools="http://schemas.android.com/tools




                                                                                                                      2. In build.gradle:




                                                                                                                        • At root, add useOldManifestMerger true








                                                                                                                      share|improve this answer

















                                                                                                                      1. In AndroidManifest.xml:




                                                                                                                        • At application, add tools:replace="android:icon, android:theme and

                                                                                                                        • At the Manifest root, add xmlns:tools="http://schemas.android.com/tools




                                                                                                                      2. In build.gradle:




                                                                                                                        • At root, add useOldManifestMerger true









                                                                                                                      share|improve this answer














                                                                                                                      share|improve this answer



                                                                                                                      share|improve this answer








                                                                                                                      edited Aug 8 '17 at 10:58









                                                                                                                      Satan Pandeya

                                                                                                                      2,42231633




                                                                                                                      2,42231633










                                                                                                                      answered Apr 6 '17 at 7:37









                                                                                                                      ao wuao wu

                                                                                                                      113




                                                                                                                      113























                                                                                                                          1














                                                                                                                          Open your gradle console, then you see gradle suggest you to add the particular line (Like: tools:replace="android:allowBackup" or tools:replace="android:label" etc). Add that line into your manifest file under tag and sync gradle, that's it.






                                                                                                                          share|improve this answer




























                                                                                                                            1














                                                                                                                            Open your gradle console, then you see gradle suggest you to add the particular line (Like: tools:replace="android:allowBackup" or tools:replace="android:label" etc). Add that line into your manifest file under tag and sync gradle, that's it.






                                                                                                                            share|improve this answer


























                                                                                                                              1












                                                                                                                              1








                                                                                                                              1







                                                                                                                              Open your gradle console, then you see gradle suggest you to add the particular line (Like: tools:replace="android:allowBackup" or tools:replace="android:label" etc). Add that line into your manifest file under tag and sync gradle, that's it.






                                                                                                                              share|improve this answer













                                                                                                                              Open your gradle console, then you see gradle suggest you to add the particular line (Like: tools:replace="android:allowBackup" or tools:replace="android:label" etc). Add that line into your manifest file under tag and sync gradle, that's it.







                                                                                                                              share|improve this answer












                                                                                                                              share|improve this answer



                                                                                                                              share|improve this answer










                                                                                                                              answered Feb 25 '18 at 7:14









                                                                                                                              Nazmus SaadatNazmus Saadat

                                                                                                                              664216




                                                                                                                              664216























                                                                                                                                  1














                                                                                                                                  Just add below code in your project Manifest application tag...



                                                                                                                                  <application
                                                                                                                                  tools:node="replace">





                                                                                                                                  share|improve this answer




























                                                                                                                                    1














                                                                                                                                    Just add below code in your project Manifest application tag...



                                                                                                                                    <application
                                                                                                                                    tools:node="replace">





                                                                                                                                    share|improve this answer


























                                                                                                                                      1












                                                                                                                                      1








                                                                                                                                      1







                                                                                                                                      Just add below code in your project Manifest application tag...



                                                                                                                                      <application
                                                                                                                                      tools:node="replace">





                                                                                                                                      share|improve this answer













                                                                                                                                      Just add below code in your project Manifest application tag...



                                                                                                                                      <application
                                                                                                                                      tools:node="replace">






                                                                                                                                      share|improve this answer












                                                                                                                                      share|improve this answer



                                                                                                                                      share|improve this answer










                                                                                                                                      answered Aug 17 '18 at 14:17









                                                                                                                                      sankalpsankalp

                                                                                                                                      322113




                                                                                                                                      322113























                                                                                                                                          1














                                                                                                                                          In my case it happened for leaving some empty intent-filter inside the Activity tag



                                                                                                                                              <activity
                                                                                                                                          android:name=".MainActivity"
                                                                                                                                          android:label="@string/app_name"
                                                                                                                                          android:theme="@style/AppTheme.NoActionBar">

                                                                                                                                          <intent-filter>

                                                                                                                                          </intent-filter>

                                                                                                                                          </activity>


                                                                                                                                          So just removing them solved the problem.



                                                                                                                                              <activity
                                                                                                                                          android:name=".MainActivity"
                                                                                                                                          android:label="@string/app_name"
                                                                                                                                          android:theme="@style/AppTheme.NoActionBar">
                                                                                                                                          </activity>





                                                                                                                                          share|improve this answer




























                                                                                                                                            1














                                                                                                                                            In my case it happened for leaving some empty intent-filter inside the Activity tag



                                                                                                                                                <activity
                                                                                                                                            android:name=".MainActivity"
                                                                                                                                            android:label="@string/app_name"
                                                                                                                                            android:theme="@style/AppTheme.NoActionBar">

                                                                                                                                            <intent-filter>

                                                                                                                                            </intent-filter>

                                                                                                                                            </activity>


                                                                                                                                            So just removing them solved the problem.



                                                                                                                                                <activity
                                                                                                                                            android:name=".MainActivity"
                                                                                                                                            android:label="@string/app_name"
                                                                                                                                            android:theme="@style/AppTheme.NoActionBar">
                                                                                                                                            </activity>





                                                                                                                                            share|improve this answer


























                                                                                                                                              1












                                                                                                                                              1








                                                                                                                                              1







                                                                                                                                              In my case it happened for leaving some empty intent-filter inside the Activity tag



                                                                                                                                                  <activity
                                                                                                                                              android:name=".MainActivity"
                                                                                                                                              android:label="@string/app_name"
                                                                                                                                              android:theme="@style/AppTheme.NoActionBar">

                                                                                                                                              <intent-filter>

                                                                                                                                              </intent-filter>

                                                                                                                                              </activity>


                                                                                                                                              So just removing them solved the problem.



                                                                                                                                                  <activity
                                                                                                                                              android:name=".MainActivity"
                                                                                                                                              android:label="@string/app_name"
                                                                                                                                              android:theme="@style/AppTheme.NoActionBar">
                                                                                                                                              </activity>





                                                                                                                                              share|improve this answer













                                                                                                                                              In my case it happened for leaving some empty intent-filter inside the Activity tag



                                                                                                                                                  <activity
                                                                                                                                              android:name=".MainActivity"
                                                                                                                                              android:label="@string/app_name"
                                                                                                                                              android:theme="@style/AppTheme.NoActionBar">

                                                                                                                                              <intent-filter>

                                                                                                                                              </intent-filter>

                                                                                                                                              </activity>


                                                                                                                                              So just removing them solved the problem.



                                                                                                                                                  <activity
                                                                                                                                              android:name=".MainActivity"
                                                                                                                                              android:label="@string/app_name"
                                                                                                                                              android:theme="@style/AppTheme.NoActionBar">
                                                                                                                                              </activity>






                                                                                                                                              share|improve this answer












                                                                                                                                              share|improve this answer



                                                                                                                                              share|improve this answer










                                                                                                                                              answered Nov 14 '18 at 4:28









                                                                                                                                              Dr TJDr TJ

                                                                                                                                              2,0602242




                                                                                                                                              2,0602242























                                                                                                                                                  0














                                                                                                                                                  As a newbie to Android Studio, in my case, I had moved an existing project from Eclipse to Android Studio and found that there was a duplicate definition of an activity within my Manifest.xml that hadn't been picked up by Eclipse was shown as a Gradle error.



                                                                                                                                                  I found this by going to the Gradle Console (bottom right of the screen).






                                                                                                                                                  share|improve this answer




























                                                                                                                                                    0














                                                                                                                                                    As a newbie to Android Studio, in my case, I had moved an existing project from Eclipse to Android Studio and found that there was a duplicate definition of an activity within my Manifest.xml that hadn't been picked up by Eclipse was shown as a Gradle error.



                                                                                                                                                    I found this by going to the Gradle Console (bottom right of the screen).






                                                                                                                                                    share|improve this answer


























                                                                                                                                                      0












                                                                                                                                                      0








                                                                                                                                                      0







                                                                                                                                                      As a newbie to Android Studio, in my case, I had moved an existing project from Eclipse to Android Studio and found that there was a duplicate definition of an activity within my Manifest.xml that hadn't been picked up by Eclipse was shown as a Gradle error.



                                                                                                                                                      I found this by going to the Gradle Console (bottom right of the screen).






                                                                                                                                                      share|improve this answer













                                                                                                                                                      As a newbie to Android Studio, in my case, I had moved an existing project from Eclipse to Android Studio and found that there was a duplicate definition of an activity within my Manifest.xml that hadn't been picked up by Eclipse was shown as a Gradle error.



                                                                                                                                                      I found this by going to the Gradle Console (bottom right of the screen).







                                                                                                                                                      share|improve this answer












                                                                                                                                                      share|improve this answer



                                                                                                                                                      share|improve this answer










                                                                                                                                                      answered Jan 4 '17 at 11:15









                                                                                                                                                      JanBJanB

                                                                                                                                                      683613




                                                                                                                                                      683613























                                                                                                                                                          0














                                                                                                                                                          Happened with me twice when I refractor (Rename with SHIFT + F6) the name of a field in our files and it asks you to change it everywhere and we without paying attention change the name everywhere.
                                                                                                                                                          For example, if you have a variable name "id" in your Java class and you rename it with SHIFT + F6. If you don't pay attention to the next dialog which will ask you wherever else it is going to change the id and you tick check all it will change all the id in your layout files from the new value.






                                                                                                                                                          share|improve this answer




























                                                                                                                                                            0














                                                                                                                                                            Happened with me twice when I refractor (Rename with SHIFT + F6) the name of a field in our files and it asks you to change it everywhere and we without paying attention change the name everywhere.
                                                                                                                                                            For example, if you have a variable name "id" in your Java class and you rename it with SHIFT + F6. If you don't pay attention to the next dialog which will ask you wherever else it is going to change the id and you tick check all it will change all the id in your layout files from the new value.






                                                                                                                                                            share|improve this answer


























                                                                                                                                                              0












                                                                                                                                                              0








                                                                                                                                                              0







                                                                                                                                                              Happened with me twice when I refractor (Rename with SHIFT + F6) the name of a field in our files and it asks you to change it everywhere and we without paying attention change the name everywhere.
                                                                                                                                                              For example, if you have a variable name "id" in your Java class and you rename it with SHIFT + F6. If you don't pay attention to the next dialog which will ask you wherever else it is going to change the id and you tick check all it will change all the id in your layout files from the new value.






                                                                                                                                                              share|improve this answer













                                                                                                                                                              Happened with me twice when I refractor (Rename with SHIFT + F6) the name of a field in our files and it asks you to change it everywhere and we without paying attention change the name everywhere.
                                                                                                                                                              For example, if you have a variable name "id" in your Java class and you rename it with SHIFT + F6. If you don't pay attention to the next dialog which will ask you wherever else it is going to change the id and you tick check all it will change all the id in your layout files from the new value.







                                                                                                                                                              share|improve this answer












                                                                                                                                                              share|improve this answer



                                                                                                                                                              share|improve this answer










                                                                                                                                                              answered Jul 9 '17 at 6:11









                                                                                                                                                              Rakesh YadavRakesh Yadav

                                                                                                                                                              1,1121427




                                                                                                                                                              1,1121427























                                                                                                                                                                  0














                                                                                                                                                                  this is very simple error only occur when you define any activity call two time in mainifest.xml file Example like



                                                                                                                                                                  <activity android:name="com.futuretech.mpboardexam.Game" ></activity>

                                                                                                                                                                  //and launcher also------like that



                                                                                                                                                                  //solution:use only one





                                                                                                                                                                  share|improve this answer






























                                                                                                                                                                    0














                                                                                                                                                                    this is very simple error only occur when you define any activity call two time in mainifest.xml file Example like



                                                                                                                                                                    <activity android:name="com.futuretech.mpboardexam.Game" ></activity>

                                                                                                                                                                    //and launcher also------like that



                                                                                                                                                                    //solution:use only one





                                                                                                                                                                    share|improve this answer




























                                                                                                                                                                      0












                                                                                                                                                                      0








                                                                                                                                                                      0







                                                                                                                                                                      this is very simple error only occur when you define any activity call two time in mainifest.xml file Example like



                                                                                                                                                                      <activity android:name="com.futuretech.mpboardexam.Game" ></activity>

                                                                                                                                                                      //and launcher also------like that



                                                                                                                                                                      //solution:use only one





                                                                                                                                                                      share|improve this answer















                                                                                                                                                                      this is very simple error only occur when you define any activity call two time in mainifest.xml file Example like



                                                                                                                                                                      <activity android:name="com.futuretech.mpboardexam.Game" ></activity>

                                                                                                                                                                      //and launcher also------like that



                                                                                                                                                                      //solution:use only one






                                                                                                                                                                      share|improve this answer














                                                                                                                                                                      share|improve this answer



                                                                                                                                                                      share|improve this answer








                                                                                                                                                                      edited Aug 8 '17 at 10:32









                                                                                                                                                                      legoscia

                                                                                                                                                                      28.8k1180111




                                                                                                                                                                      28.8k1180111










                                                                                                                                                                      answered Aug 8 '17 at 10:11









                                                                                                                                                                      Lalit BaghelLalit Baghel

                                                                                                                                                                      713




                                                                                                                                                                      713























                                                                                                                                                                          0














                                                                                                                                                                          I was using the FirebaseUI Library along with the Facebook SDK Library, which was causing me the issue.



                                                                                                                                                                          compile 'com.firebaseui:firebase-ui-database:0.4.4'
                                                                                                                                                                          compile 'com.facebook.android:facebook-android-sdk:[4,5)'


                                                                                                                                                                          And from here, I got rid of this issue.



                                                                                                                                                                          With the latest update of FirebaseUI library, previous version of Facebook SDK is also a part of it.



                                                                                                                                                                          If you are using the both the libraries, please remove the Facebook SDK Library.






                                                                                                                                                                          share|improve this answer






























                                                                                                                                                                            0














                                                                                                                                                                            I was using the FirebaseUI Library along with the Facebook SDK Library, which was causing me the issue.



                                                                                                                                                                            compile 'com.firebaseui:firebase-ui-database:0.4.4'
                                                                                                                                                                            compile 'com.facebook.android:facebook-android-sdk:[4,5)'


                                                                                                                                                                            And from here, I got rid of this issue.



                                                                                                                                                                            With the latest update of FirebaseUI library, previous version of Facebook SDK is also a part of it.



                                                                                                                                                                            If you are using the both the libraries, please remove the Facebook SDK Library.






                                                                                                                                                                            share|improve this answer




























                                                                                                                                                                              0












                                                                                                                                                                              0








                                                                                                                                                                              0







                                                                                                                                                                              I was using the FirebaseUI Library along with the Facebook SDK Library, which was causing me the issue.



                                                                                                                                                                              compile 'com.firebaseui:firebase-ui-database:0.4.4'
                                                                                                                                                                              compile 'com.facebook.android:facebook-android-sdk:[4,5)'


                                                                                                                                                                              And from here, I got rid of this issue.



                                                                                                                                                                              With the latest update of FirebaseUI library, previous version of Facebook SDK is also a part of it.



                                                                                                                                                                              If you are using the both the libraries, please remove the Facebook SDK Library.






                                                                                                                                                                              share|improve this answer















                                                                                                                                                                              I was using the FirebaseUI Library along with the Facebook SDK Library, which was causing me the issue.



                                                                                                                                                                              compile 'com.firebaseui:firebase-ui-database:0.4.4'
                                                                                                                                                                              compile 'com.facebook.android:facebook-android-sdk:[4,5)'


                                                                                                                                                                              And from here, I got rid of this issue.



                                                                                                                                                                              With the latest update of FirebaseUI library, previous version of Facebook SDK is also a part of it.



                                                                                                                                                                              If you are using the both the libraries, please remove the Facebook SDK Library.







                                                                                                                                                                              share|improve this answer














                                                                                                                                                                              share|improve this answer



                                                                                                                                                                              share|improve this answer








                                                                                                                                                                              edited Jan 13 '18 at 11:45

























                                                                                                                                                                              answered Jan 13 '18 at 11:07









                                                                                                                                                                              Mohammedsalim ShivaniMohammedsalim Shivani

                                                                                                                                                                              80721123




                                                                                                                                                                              80721123























                                                                                                                                                                                  0














                                                                                                                                                                                  Put this at the end of your app module build.gradle:



                                                                                                                                                                                  configurations.all {
                                                                                                                                                                                  resolutionStrategy.eachDependency { DependencyResolveDetails details ->
                                                                                                                                                                                  def requested = details.requested
                                                                                                                                                                                  if (requested.group == 'com.android.support') {
                                                                                                                                                                                  if (!requested.name.startsWith("multidex")) {
                                                                                                                                                                                  details.useVersion '25.3.0'
                                                                                                                                                                                  }
                                                                                                                                                                                  }
                                                                                                                                                                                  }}


                                                                                                                                                                                  from this






                                                                                                                                                                                  share|improve this answer




























                                                                                                                                                                                    0














                                                                                                                                                                                    Put this at the end of your app module build.gradle:



                                                                                                                                                                                    configurations.all {
                                                                                                                                                                                    resolutionStrategy.eachDependency { DependencyResolveDetails details ->
                                                                                                                                                                                    def requested = details.requested
                                                                                                                                                                                    if (requested.group == 'com.android.support') {
                                                                                                                                                                                    if (!requested.name.startsWith("multidex")) {
                                                                                                                                                                                    details.useVersion '25.3.0'
                                                                                                                                                                                    }
                                                                                                                                                                                    }
                                                                                                                                                                                    }}


                                                                                                                                                                                    from this






                                                                                                                                                                                    share|improve this answer


























                                                                                                                                                                                      0












                                                                                                                                                                                      0








                                                                                                                                                                                      0







                                                                                                                                                                                      Put this at the end of your app module build.gradle:



                                                                                                                                                                                      configurations.all {
                                                                                                                                                                                      resolutionStrategy.eachDependency { DependencyResolveDetails details ->
                                                                                                                                                                                      def requested = details.requested
                                                                                                                                                                                      if (requested.group == 'com.android.support') {
                                                                                                                                                                                      if (!requested.name.startsWith("multidex")) {
                                                                                                                                                                                      details.useVersion '25.3.0'
                                                                                                                                                                                      }
                                                                                                                                                                                      }
                                                                                                                                                                                      }}


                                                                                                                                                                                      from this






                                                                                                                                                                                      share|improve this answer













                                                                                                                                                                                      Put this at the end of your app module build.gradle:



                                                                                                                                                                                      configurations.all {
                                                                                                                                                                                      resolutionStrategy.eachDependency { DependencyResolveDetails details ->
                                                                                                                                                                                      def requested = details.requested
                                                                                                                                                                                      if (requested.group == 'com.android.support') {
                                                                                                                                                                                      if (!requested.name.startsWith("multidex")) {
                                                                                                                                                                                      details.useVersion '25.3.0'
                                                                                                                                                                                      }
                                                                                                                                                                                      }
                                                                                                                                                                                      }}


                                                                                                                                                                                      from this







                                                                                                                                                                                      share|improve this answer












                                                                                                                                                                                      share|improve this answer



                                                                                                                                                                                      share|improve this answer










                                                                                                                                                                                      answered Jun 2 '18 at 10:23









                                                                                                                                                                                      SHADOW NETSHADOW NET

                                                                                                                                                                                      264




                                                                                                                                                                                      264























                                                                                                                                                                                          0














                                                                                                                                                                                          Supplement the answer Phan Van Linh. I deleted these lines:



                                                                                                                                                                                            android:icon="@mipmap/ic_launcher"
                                                                                                                                                                                          android:label="name"





                                                                                                                                                                                          share|improve this answer




























                                                                                                                                                                                            0














                                                                                                                                                                                            Supplement the answer Phan Van Linh. I deleted these lines:



                                                                                                                                                                                              android:icon="@mipmap/ic_launcher"
                                                                                                                                                                                            android:label="name"





                                                                                                                                                                                            share|improve this answer


























                                                                                                                                                                                              0












                                                                                                                                                                                              0








                                                                                                                                                                                              0







                                                                                                                                                                                              Supplement the answer Phan Van Linh. I deleted these lines:



                                                                                                                                                                                                android:icon="@mipmap/ic_launcher"
                                                                                                                                                                                              android:label="name"





                                                                                                                                                                                              share|improve this answer













                                                                                                                                                                                              Supplement the answer Phan Van Linh. I deleted these lines:



                                                                                                                                                                                                android:icon="@mipmap/ic_launcher"
                                                                                                                                                                                              android:label="name"






                                                                                                                                                                                              share|improve this answer












                                                                                                                                                                                              share|improve this answer



                                                                                                                                                                                              share|improve this answer










                                                                                                                                                                                              answered Jun 23 '18 at 18:49









                                                                                                                                                                                              DenDen

                                                                                                                                                                                              13




                                                                                                                                                                                              13























                                                                                                                                                                                                  0














                                                                                                                                                                                                  The minium sdk version should be same as of the modules/lib you are using
                                                                                                                                                                                                  For example: Your module min sdk version is 26 and your app min sdk version is 21 It should be same.






                                                                                                                                                                                                  share|improve this answer




























                                                                                                                                                                                                    0














                                                                                                                                                                                                    The minium sdk version should be same as of the modules/lib you are using
                                                                                                                                                                                                    For example: Your module min sdk version is 26 and your app min sdk version is 21 It should be same.






                                                                                                                                                                                                    share|improve this answer


























                                                                                                                                                                                                      0












                                                                                                                                                                                                      0








                                                                                                                                                                                                      0







                                                                                                                                                                                                      The minium sdk version should be same as of the modules/lib you are using
                                                                                                                                                                                                      For example: Your module min sdk version is 26 and your app min sdk version is 21 It should be same.






                                                                                                                                                                                                      share|improve this answer













                                                                                                                                                                                                      The minium sdk version should be same as of the modules/lib you are using
                                                                                                                                                                                                      For example: Your module min sdk version is 26 and your app min sdk version is 21 It should be same.







                                                                                                                                                                                                      share|improve this answer












                                                                                                                                                                                                      share|improve this answer



                                                                                                                                                                                                      share|improve this answer










                                                                                                                                                                                                      answered Aug 13 '18 at 13:31









                                                                                                                                                                                                      Ejaz AhmadEjaz Ahmad

                                                                                                                                                                                                      1949




                                                                                                                                                                                                      1949















                                                                                                                                                                                                          Popular posts from this blog

                                                                                                                                                                                                          Bressuire

                                                                                                                                                                                                          How do I send a custom error message from Node, and display it with catch?

                                                                                                                                                                                                          Quarantine