Build 我的项目有点错误

Build 我的项目有点错误,build,Build,如何修复此错误 错误消息: 程序类型已存在:com.android.volley.Cache$Entry 消息{kind=ERROR,text=Program type已经存在:com.android.volley.Cache$Entry,sources=[未知源文件],tool name=Optional.of(D8)} 您只需删除实现'com.android.volley:volley:1.0.0'并在代码中添加实现'com.mcxiaoke.volley:library aar:1.0.0

如何修复此错误

错误消息:

程序类型已存在:com.android.volley.Cache$Entry 消息{kind=ERROR,text=Program type已经存在:com.android.volley.Cache$Entry,sources=[未知源文件],tool name=Optional.of(D8)}


您只需删除


实现'com.android.volley:volley:1.0.0'


并在代码中添加

实现'com.mcxiaoke.volley:library aar:1.0.0'

即可,并生成正确的:)

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])

    implementation 'com.android.support:appcompat-v7:26.1.0'
    implementation 'com.android.support.constraint:constraint-layout:1.0.2'

    implementation 'com.android.support:design:26.1.0'
    implementation 'com.android.support:support-v4:26.1.0'
    implementation 'com.squareup.retrofit2:retrofit:2.1.0'
    implementation 'com.squareup.retrofit2:converter-gson:2.1.0'
    implementation 'com.jakewharton:butterknife:8.4.0'

    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.1'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
    implementation 'com.github.bumptech.glide:volley-integration:1.4.0'
    implementation 'com.android.volley:volley:1.0.0'
    implementation 'com.android.support:cardview-v7:26.1.0'
    implementation 'com.android.support:recyclerview-v7:26.1.0'


}