Cordova Android duplicated uses-feature from two plugins

前端 未结 7 2044
无人共我
无人共我 2020-12-10 02:12

I am using two different plugins into cordova, which both have the same uses-feature, one with android:required=\"false\" and one without.

7条回答
  •  [愿得一人]
    2020-12-10 02:24

    This is how it finally worked for us in our Ionic 3 project. You should remove one of the duplicate entries from platforms/android/AndroidManifest.xml:

    
        ...
        
        ...
        
    
    

    And also from platforms/android/android.json:

    {
      "xml": "",
      "count": 1
    },
    ...
    {
      "xml": "",
      "count": 1
    }
    

    PS: We do this tweak only when adding the Android platform, not at every build.

提交回复
热议问题