multiple dex files define landroid/support/annotation/AnimRes

前端 未结 18 1050
太阳男子
太阳男子 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:26

    Updating Android SDK Tools fixed it for me, now it just sees the copy in android-support-v4.jar.

    I had the same problem when using ant, and the annotations library was being included automatically by an outdated sdk.dir/tools/ant/build.xml.

提交回复
热议问题