首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >已存在的程序类型: com.nineoldandroids.animation.Animator

已存在的程序类型: com.nineoldandroids.animation.Animator
EN

Stack Overflow用户
提问于 2018-11-02 21:04:59
回答 1查看 753关注 0票数 0

我添加了一个库,它在构建应用程序时生成了这个错误:

代码语言:javascript
复制
Program type already present: com.nineoldandroids.animation.Animator

图书馆是:

代码语言:javascript
复制
implementation 'net.steamcrafted:load-toast:1.0.12'

我的等级是:

代码语言:javascript
复制
dependencies {
    implementation 'com.specyci:residemenu:1.6+'
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:27.0.2'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    implementation 'com.android.support:support-v4:28.0.0'
    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.mapbox.mapboxsdk:mapbox-android-sdk:6.5.0'
    implementation 'com.karumi:dexter:5.0.0'
    implementation 'com.mapbox.mapboxsdk:mapbox-android-plugin-locationlayer:0.10.0'
    implementation 'com.mapbox.mapboxsdk:mapbox-android-navigation:0.13.0'
    implementation 'com.mapbox.mapboxsdk:mapbox-sdk-services:4.0.0'
    implementation "com.orhanobut:hawk:2.0.1"
    implementation 'com.lusfold.spinnerloading:library:1.0.0'
    implementation 'com.github.AndroidDeveloperLB:AutoFitTextView:4'
    implementation 'com.github.GrenderG:Toasty:1.3.0'
    implementation 'net.steamcrafted:load-toast:1.0.12'
    implementation('com.mapbox.mapboxsdk:mapbox-android-navigation-ui:0.13.0') {
    transitive = true
    }
    implementation 'io.nlopez.smartlocation:rx:3.3.3'
    implementation 'com.squareup.retrofit2:retrofit:2.4.0'
    implementation 'com.squareup.retrofit2:converter-gson:2.4.0'

}

当我删除这个库时,我的应用程序将成功地构建并运行--这个库的问题是什么?是什么导致了这场冲突?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-11-02 21:18:27

这个问题通常来自命名冲突,在您的例子中是com.nineoldandroids库,其他库可能正在使用它。

只需将此排除添加到库中即可:

代码语言:javascript
复制
implementation 'net.steamcrafted:load-toast:1.0.12'{
exclude group: 'com.nineoldandroids'
}
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/53125814

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档