Skip to content Skip to sidebar Skip to footer

Android Gradle Support Libraries Must Use Same Version

I already looked at every other questions and googled the impossible but I cannot find a way to use correct dependencies. Below there is my app Gradle build file: buildscript { r

Solution 1:

Hey just exclude the appcompat dependencies from the libraries which are using an older version of appcompat and support libraries. If you don't have these support libraries in your project then include them. In your question, braintreepayments is one of the libraries which using an older version of card view and design library. Try changing your gradle dependencies to

dependencies {
    ...
    implementation 'com.android.support:appcompat-v7:27.1.1'
    implementation 'com.android.support:design:27.1.1'
    implementation 'com.android.support:cardview-v7:27.1.1'
    implementation ('com.braintreepayments.api:drop-in:3.0.0'){
        exclude group: 'com.android.support'
    }
    ...
}

Solution 2:

You should either downgrade appcompat library so its version be lowe then build tools version but still 27th, or upgrade build tools version up to appcompat. Check different compounds to find completely the same verstion

Solution 3:

Remove buildToolsVersion "27.0.3" from your gradle file.

Or you should check this-- buildToolsVersion "27".

Good luck

Post a Comment for "Android Gradle Support Libraries Must Use Same Version"