【编译】解决jar包冲突问题

  1. 查看冲突的jar包 gradlew -q app:dependencies

  2. 使用exclue排除
    dependencies {

    compile 'com.android.support:appcompat-v7:22.2.1'
    compile ('com.android.support:design:22.2.1')
    {
    exclude group: 'com.android.support'
    }
    compile 'com.shamanland:fonticon:0.1.8'
    androidTestCompile 'com.android.support:support-annotations:22.2.1'
    androidTestCompile 'com.android.support.test:runner:0.3'
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2')
    {
    exclude group:'org.hamcrest'
    }
    }

你可能感兴趣的:(【编译】解决jar包冲突问题)