当我运行我的应用程序时,它返回此错误 通过搜索,我意识到我必须更改 gradle 文件中的依赖项,但我不知道要更改什么。这是我的 build.gradle 文件:
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'com.android.support:support-v4:27.1.1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.github.sundeepk:compact-calendar-view:1.9.1'
implementation 'com.mcxiaoke.volley:library-aar:1.0.0'
implementation 'com.android.support:cardview-v7:27.1.1'
implementation 'com.google.android.gms:play-services-location:10.2.4'
implementation 'com.android.support.constraint:constraint-layout:1.0.0-beta1'
implementation 'com.android.volley:volley:1.0.0'
implementation 'com.jakewharton:butterknife:8.5.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1'
}
最佳答案
仅供引用
implementation 'com.mcxiaoke.volley:library-aar:1.0.0'
isDEPRECATED
从您的中删除
实现“com.mcxiaoke.volley:library-aar:1.0.0”
的依赖项
>Build.Gradle
比清理-重新构建-运行
您的项目
编辑
Latest version is 编译'com.android.volley:volley:1.1.1'
关于android - 程序类型已存在 : com. android.volley.Cache$Entry,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52112754/