美文网首页
Android Studio 查看依赖冲突

Android Studio 查看依赖冲突

作者: Android_冯星 | 来源:发表于2019-04-01 21:22 被阅读0次
    ./gradlew :app:dependencies --configuration compile
    

    查看依赖冲突

    例如:

    • alibaba:arouter 导致的依赖冲突 com.android.support

    报错信息

    All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 28.0.0, 25.2.0. Examples include com.android.support:animated-vector-drawable:28.0.0 and com.android.support:support-media-compat:25.2.0 
    
    • 原因版本不一致

    解决办法

    api ('com.alibaba:arouter-api:1.4.1'){
            //exclude group: 'com.android.support'
        }
    

    相关文章

      网友评论

          本文标题:Android Studio 查看依赖冲突

          本文链接:https://www.haomeiwen.com/subject/nkovbqtx.html