multiple dex files define landroid/support/annotation/AnimRes

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

    Put in your build.gradle the dependency of support-annotations according with your compileSdkVersion. For instance: A project with the compileSdkVersion 25 you can put the following dependence:

    compile 'com.android.support:support-annotations:25.0.1'
    

    This will solve your problem.

提交回复
热议问题