multiple dex files define landroid/support/annotation/AnimRes

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

    Solved this exact issue in a Cordova project that used the facebook plugin. I was able to successfully build by commenting out this line from platforms\android\project.properties, as shown:

    # cordova.system.library.1=com.android.support:support-v4:+
    

    And by commenting out this line from platforms\android\build.gradle, as shown:

    // compile "com.android.support:support-v4:+"
    

    Then doing the build. The problem started when I installed (katzer/cordova-plugin-local-notifications) which added these lines, but it created a conflict since the library it was adding to the build was already part of the facebook plugin build.

提交回复
热议问题