multiple dex files define landroid/support/annotation/AnimRes

前端 未结 18 1054
太阳男子
太阳男子 2020-11-28 08:00

The moment I added the android support annotations to my dependencies

compile \'com.android.support:support-annotations:20.0.0\'

I got this erro

18条回答
  •  春和景丽
    2020-11-28 08:20

    I managed to fix this issue. The reason was that I included the android support library 19.0.0 as a dependency, but 19.1.0 is required. See here for more information

    So it has to be

    dependencies {
        compile 'com.android.support:support-v4:19.1.0'
        compile 'com.crashlytics.android:crashlytics:1.+'
        compile 'com.android.support:support-annotations:20.0.0'
    }
    

提交回复
热议问题