Why do I get “All com.android.support libraries must use the exact same version specification” in Android Studio 3.2.1?

后端 未结 3 457
走了就别回头了
走了就别回头了 2020-12-21 08:26

I have read the article All com.android.support libraries must use the exact same version specification

But I still get the following information after I add the c

相关标签:
3条回答
  • 2020-12-21 09:06

    For now, just include noninspection to suppresses the warning

    //noinspection GradleCompatible
    implementation 'com.google.android.gms:play-services-ads:17.0.0'
    
    //noinspection GradleCompatible
    implementation 'com.android.support:support-v4:28.0.0'
    implementation 'com.android.support:design:28.0.0'
    implementation 'com.android.support:appcompat-v7:28.0.0'
    
    implementation 'com.android.support:recyclerview-v7:28.0.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    

    Everything will work fine.

    0 讨论(0)
  • 2020-12-21 09:08

    Some or one of your libraries use an old version of customtabs internally, that's why this warning message is showing. If you implement this with the latest version then the warning will be gone.

    implementation 'com.android.support:customtabs:28.0.0'
    

    After adding this I have also shown the same error for another older version of dependencies. After adding this also all warning is gone.

    implementation 'com.android.support:support-v4:28.0.0'
    implementation 'com.android.support:design:28.0.0'
    implementation 'com.android.support:support-media-compat:28.0.0'
    

    Hope this will help you to solve your problem.

    Also you can check this: https://stackoverflow.com/a/42374426/5167909

    0 讨论(0)
  • 2020-12-21 09:17

    I think that play-services-ads:17.0.0 include appcompat 26.1.0. Try to exclude it:

    implementation ("com.google.android.gms:play-services-ads:17.0.0") {
        exclude group: "com.android.support"
    }
    
    0 讨论(0)
提交回复
热议问题