multiple dex files define landroid/support/annotation/AnimRes

前端 未结 18 1097
太阳男子
太阳男子 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条回答
  •  旧时难觅i
    2020-11-28 08:37

    In my case I had a file called cache.xml under /build/intermediates/dex-cache/cache.xml in the root project folder. I deleted this file, rebuild the project and it worked for me.

提交回复
热议问题