Android - “Manifest Merger Failed” Error after implementing Stripe library

后端 未结 2 1437
萌比男神i
萌比男神i 2021-01-25 09:55

i implemented \'com.stripe:stripe-android:8.5.0\' into my app gradle, and then i got the following error trying to build my project:

Manifest

2条回答
  •  梦毁少年i
    2021-01-25 10:23

    stripe-android is using AndroidX and included CoreComponentFactory class. Actually, your project already has this class, so try excluding the module from gradle which already exists or override the values in Manifest file as suggested by IDE or migrate your project to AndroidX from Refactor-> Migrate To AndroidX.

    Another solution is to use the older version of the stripe android library that doesn't use AndroidX inside.

提交回复
热议问题