android - 程序类型已存在 : com. android.volley.Cache$Entry

标签 android android-gradle-plugin

当我运行我的应用程序时,它返回此错误 this error通过搜索,我意识到我必须更改 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' is DEPRECATED

从您的中删除实现“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/

相关文章:

android - Kotlin 协程不等待网络结果返回

Android ViewPagerIndicator 选项卡

android - 使用AdscendMedia SDK构建Gradle

android - 如何获得有关 Android appcompat 或支持库更新的通知?

java - android studio 3.0.1 中的 Gradle 同步字段

java - 响应不是来自使用 retrofit2 的服务器

android - 如何在 Android.mk 构建过程结束时运行 shell 命令?

android - Gradle 插件 'com.android.library' 不在自定义 Maven 存储库中搜索

android - 找不到 com.android.databinding :library:3. 1.1

java - 线程中的 ParseUser 和 ParseObject 导致 ANR