Skip to main content
Question

react-native-purchase-ui common-mark duplicate classes error

  • 22 May 2024
  • 1 reply
  • 27 views

Currently react-native-purchases library works great for both iOS and Android. On the other hand whenever we implement react-native-purchases-ui, it will only work for iOS but fails in Android with this duplicate class error:

com.atlassian.commonmark:commonmark:0.13.0) and jetified-commonmark-0.21.0 (org.commonmark:commonmark:0.21.0) Duplicate class org.commonmark.internal.HtmlBlockParser found in modules jetified-commonmark-0.13.0 (com.atlassian.commonmark:commonmark:0.13.0) and jetified-commonmark-0.21.0 (org.commonmark:commonmark:0.21.0) Duplicate class org.commonmark.internal.HtmlBlockParser$1 found in modules jetified-commonmark-0.13.0 (com.atlassian.commonmark:commonmark:0.13.0) and jetified-commonmark-0.21.0 (org.commonmark:commonmark:0.21.0)

 

We’ve tried everything from downgrading libraries, upgrading our react builds, etc. That error just does not seem to go away

We’ve searched our project and arent using any commonmark packages or anything anywhere. Has anyone had this issue?

This post has been closed for comments

1 reply

Userlevel 4
Badge +6

Hey @homecarevalet!

I see you’ve got a support ticket open with us, but I wanted to post this similar GitHub issue as well to see if what helped this user may help you as well: https://github.com/RevenueCat/purchases-android/issues/1667