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

后端 未结 2 1438
萌比男神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条回答
  • 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.

    0 讨论(0)
  • 2021-01-25 10:27

    It's not about AndroidManifest.xml of your app.

    The error message is telling that there is a collision between support-compat library 28.0.0 and other library using androidx. I doubt this stripe library is built with androidx. 'com.stripe:stripe-android:8.5.0'

    You can resolve the issue by migrating your app to use androidx instead of old support libraries.

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