android getting Manifest merger failed error after update to new version of gradle -


after accepting update project new version of gradle. error:

error:execution failed task ':app:processdebugmanifest'. manifest merger failed : attribute meta-data#android.support.version@value value=(26.0.0-alpha1) [com.android.support:cardview-v7:26.0.0-alpha1] androidmanifest.xml:24:9-38     present @ [com.android.support:design:25.3.1] androidmanifest.xml:27:9-31 value=(25.3.1).     suggestion: add 'tools:replace="android:value"' <meta-data> element @ androidmanifest.xml:22:5-24:41 override. 

how can resolve problem , how can change support library on build.gradle

android {     compilesdkversion 25     buildtoolsversion "25.0.2"     defaultconfig {         applicationid "com.sample.bookreader"         minsdkversion 16         targetsdkversion 25         versioncode 1         versionname "1.0"     }     ... }  dependencies {     compile filetree(include: ['*.jar'], dir: 'libs')     compile 'com.android.support:multidex:+'     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:25+'      compile 'com.jakewharton:butterknife:8.2.1'     apt 'com.jakewharton:butterknife-compiler:8.2.1'     ... } 

and contain project build.gradle

buildscript {     repositories {         jcenter()     }     dependencies {         classpath 'com.android.tools.build:gradle:2.3.1'         classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'     } }  allprojects {     repositories {         jcenter()         maven { url "https://www.jitpack.io" }     } }  task clean(type: delete) {     delete rootproject.builddir } 

i'm trying use gradle suggestion using latest version of support libraries, doesn't resolve problem

you using multiple versions of android support libraries:

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:25+' 

two 26.0.0-alpha1, , 1 using 25+.

pick 1 concrete version , use 3 of these. since compilesdkversion not o, use 25.3.1 3 of these libraries, resulting in:

compile 'com.android.support:appcompat-v7:25.3.1' compile 'com.android.support:cardview-v7:25.3.1' compile 'com.android.support:design:25.3.1' 

Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -