Android manifest merger fails for receivers with same name but different content

前端 未结 2 1489
别那么骄傲
别那么骄傲 2021-01-19 00:14

I\'m having problem with manifest merger with duplicated receivers but the content is different. I use the following receivers for different API levels, had no issue so far

相关标签:
2条回答
  • 2021-01-19 01:01

    You can find how I fixed your exact same issue in this answer. Basically I created another class, but I made it an static inner class to avoid creating another file to handle a common action.

    0 讨论(0)
  • 2021-01-19 01:20

    perhaps you can set

    android {
       useOldManifestMerger true
    }
    

    in your build.gradle file and this worked fine in my project you can see more details here

    0 讨论(0)
提交回复
热议问题