android - Manifest merger failed with multiple errors -


i have following error when has converted android build tools version 26.0.0 , add metadata for:

  1. facebook .
  2. fabric.

compile 'com.google.android.gms:play-services:11.0.4'

the error :

error:execution failed task ':app:processdebugmanifest'. manifest merger failed multiple errors, see logs

my manifest :

<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     package="moments.com.arabsooq"     android:installlocation="auto">      <uses-permission android:name="android.permission.internet" />     <uses-permission android:name="android.permission.write_external_storage" />     <uses-permission android:name="android.permission.read_external_storage" />     <uses-permission android:name="android.permission.call_phone" />     <uses-permission android:name="android.permission.access_wifi_state"/>     <uses-permission android:name="android.permission.access_network_state" />      <uses-feature         android:name="android.hardware.camera" android:required="true" />      <application         android:allowbackup="true"         android:fullbackupcontent="true"         android:icon="@mipmap/ic_launcherr"         android:label="@string/app_name"         android:roundicon="@mipmap/ic_launcherr"         android:supportsrtl="true"         android:theme="@style/apptheme">          <activity             android:name=".activities.splashscreen"             android:screenorientation="portrait">             <intent-filter>                 <action android:name="android.intent.action.main" />                  <category android:name="android.intent.category.launcher" />             </intent-filter>         </activity>         <activity             android:name=".activities.mainactivity"             android:label="@string/title_activity_main"             android:screenorientation="portrait"             android:theme="@style/apptheme">             <intent-filter android:label="@string/app_name_ar">                 <action android:name="android.intent.action.view" />                  <category android:name="android.intent.category.default" />                 <category android:name="android.intent.category.browsable" />                  <data                     android:host="www.arabsoog.com"                     android:pathprefix="/create"                     android:scheme="http" />             </intent-filter>         </activity>         <activity             android:name=".activities.choosecountry"             android:screenorientation="portrait" />         <activity             android:name=".activities.loginchooser"             android:screenorientation="portrait" />         <activity             android:name=".activities.subcategory"             android:screenorientation="portrait" />         <activity             android:name=".activities.advertisments"             android:screenorientation="portrait" />         <activity             android:name=".activities.productact"             android:screenorientation="portrait" />         <activity             android:name=".activities.addad"             android:screenorientation="portrait" />         <activity             android:name=".activities.search"             android:label="@string/title_activity_search"             android:screenorientation="portrait"             android:theme="@style/apptheme" />         <activity             android:name=".activities.doneadd"             android:screenorientation="portrait"             android:theme="@style/myalertdialogstyle" />         <activity             android:name=".activities.myprofile"             android:label="@string/title_activity_my_profile"             android:screenorientation="portrait" />         <activity             android:name=".activities.searchresult"             android:screenorientation="portrait" />         <activity             android:name=".activities.myfave"             android:screenorientation="portrait" />         <activity             android:name=".activities.updateadd"             android:screenorientation="portrait" />         <activity             android:name=".activities.aboutapp"             android:screenorientation="portrait"             android:theme="@style/myalertdialogstyle" />         <activity             android:name=".activities.contact_user"             android:screenorientation="portrait"             android:theme="@style/myalertdialogstyle" />         <activity             android:name=".activities.myads"             android:label="@string/title_activity_my_ads"             android:theme="@style/apptheme" />          <service             android:name=".services.myfirebaseinstanceidservice"             android:exported="false">             <intent-filter>                 <action android:name="com.google.firebase.instance_id_event" />             </intent-filter>         </service>         <service             android:name=".services.myfirebasemessagingservice"             android:exported="false">             <intent-filter>                 <action android:name="com.google.firebase.messaging_event" />             </intent-filter>         </service>          <activity             android:name="com.facebook.facebookactivity"             android:configchanges="keyboard|keyboardhidden|screenlayout|screensize|orientation"             android:label="@string/app_name" />         <activity             android:name="com.facebook.customtabactivity"             android:exported="true">             <intent-filter>                 <action android:name="android.intent.action.view" />                  <category android:name="android.intent.category.default" />                 <category android:name="android.intent.category.browsable" />                  <data android:scheme="@string/fb_login_protocol_scheme" />             </intent-filter>         </activity>          <meta-data             tools:replace="android:value=25.3.1"             android:name="com.facebook.sdk.applicationid"             android:value="@string/facebook_app_id" />          <activity             android:name=".activities.zoom"             android:theme="@style/myalertdialogstyle" />          <meta-data             android:name="io.fabric.apikey"             android:value="83b5fdfbb15ad6f9567027ae5a20c3fe99e2cedf" />      </application>  </manifest> 

my gradle :

    buildscript {     repositories {         maven { url 'https://maven.fabric.io/public' }     }      dependencies {         classpath 'io.fabric.tools:gradle:1.24.1'     } } apply plugin: 'com.android.application' apply plugin: 'io.fabric' apply plugin: 'kotlin-android'  android {     compilesdkversion 26     buildtoolsversion "26.0.1"     defaultconfig {         applicationid "moments.com.arabsooq"         minsdkversion 17         targetsdkversion 26         versioncode 23         versionname "0.0.14"         testinstrumentationrunner "android.support.test.runner.androidjunitrunner"         vectordrawables.usesupportlibrary = true     }     buildtypes {         release {             minifyenabled false             proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'         }     } }  repositories {     mavencentral()     jcenter()     maven { url 'https://maven.fabric.io/public' } } dependencies {     compile filetree(include: ['*.jar'], dir: 'libs')     androidtestcompile('com.android.support.test.espresso:espresso-core:2.2.2', {         exclude group: 'com.android.support', module: 'support-annotations'     })     compile('com.crashlytics.sdk.android:crashlytics:2.6.8@aar') {         transitive = true;     }     compile('com.crashlytics.sdk.android:crashlytics-ndk:1.1.6@aar') {         transitive = true;     }     compile 'org.jetbrains.kotlin:kotlin-stdlib-jre7:1.1.3'     compile 'com.android.support:appcompat-v7:26.0.0-alpha1'     compile 'com.android.support:design:26.0.0-alpha1'     compile 'com.android.support:support-v4:26.0.0-alpha1'     compile 'com.android.support:appcompat-v7:26.0.0-alpha1'     compile 'com.android.support:cardview-v7:26.0.0-alpha1'     compile 'com.android.support:design:26.0.0-alpha1'      compile 'com.android.support.constraint:constraint-layout:1.0.2'      compile 'com.android.volley:volley:1.0.0'     compile 'com.squareup.picasso:picasso:2.5.2'      compile 'com.nineoldandroids:library:2.4.0'     compile 'com.daimajia.slider:library:1.1.5@aar'     compile 'com.tasomaniac:delayed-progress:0.4'     compile 'com.taishi-y:flipprogressdialog:0.1.0'     compile 'net.gotev:uploadservice:3.2.4'     compile 'net.gotev:uploadservice-okhttp:3.2.4'     compile 'com.squareup.retrofit2:retrofit:2.3.0'     compile 'xyz.dev_juyoung:cropicker:1.0.3'     compile 'com.reginald.swiperefresh:library:1.1.2'     compile 'com.facebook.android:facebook-android-sdk:[4,5)'     compile 'com.daimajia.easing:library:2.0@aar'     compile 'com.daimajia.androidanimations:library:2.3@aar'     compile 'com.nispok:snackbar:2.6.1'     compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'      compile 'com.google.firebase:firebase-crash:11.0.4'     compile 'com.google.firebase:firebase-messaging:11.0.4'     compile 'com.google.firebase:firebase-ads:11.0.4'     compile 'com.google.android.gms:play-services-ads:11.0.4'     compile 'com.google.android.gms:play-services:11.0.4'     testcompile 'junit:junit:4.12' }  apply plugin: 'com.google.gms.google-services' crashlytics {     enablendk true     androidndkout 'src/main/obj'     androidndklibsout 'src/main/libs' } 

error log :

2017-08-21 10:45:47,158 [61689741] debug - com.crashlytics - frame activated project: project 'g:\arabsoog\arabsoog\arabsooqapplication' arabsooqapplication

2017-08-21 10:45:49,204 [61691787] info - ild.invoker.gradlebuildinvoker - execute gradle tasks: [clean, :app:generatedebugsources, :app:generatedebugandroidtestsources, :app:mockableandroidjar, :app:preparedebugunittestdependencies]

2017-08-21 10:45:49,210 [61691793] info - s.plugins.gradle.gradlemanager - instructing gradle use java c:/program files/android/android studio/jre

2017-08-21 10:45:49,273 [61691856] info - ild.invoker.gradlebuildinvoker - build command line options: [--configure-on-demand, -pandroid.injected.invoked.from.ide=true, -pandroid.injected.generatesourcesonly=true, --init-script, c:\users\hamzaa~1\appdata\local\temp\aslocalrepo4354.gradle]

2017-08-21 10:45:49,273 [61691856] info - xecution.gradleexecutionhelper - passing command-line args gradle tooling api: [--configure-on-demand, -pandroid.injected.invoked.from.ide=true, -pandroid.injected.generatesourcesonly=true, --init-script, c:\users\hamzaa~1\appdata\local\temp\aslocalrepo4354.gradle]

2017-08-21 10:45:50,510 [61693093] info - pl.projectrootmanagercomponent - project roots have changed

2017-08-21 10:45:50,594 [61693177] info - .diagnostic.performancewatcher - pushing properties took 3ms; general responsiveness: ok; edt responsiveness: ok

2017-08-21 10:45:50,610 [61693193] info - .diagnostic.performancewatcher - indexable file iteration took 16ms; general responsiveness: ok; edt responsiveness: ok

2017-08-21 10:45:50,610 [61693193] info - indexing.unindexedfilesupdater - unindexed files update started: 2 files update

2017-08-21 10:45:50,687 [61693270] info - .diagnostic.performancewatcher - unindexed files update took 77ms; general responsiveness: ok; edt responsiveness: ok

i removed line manifest:

tools:replace="android:value=25.3.1"

and using code in 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'             }         }     } } 

using resourse : comments


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -