invertase / react-native-apple-authentication

A React Native library providing support for Apple Authentication on iOS and Android.
Other
1.36k stars 215 forks source link

bundle aab Type com.RNAppleAuthentication.AppleAuthenticationAndroidModule$2 is defined multiple times #298

Closed tsansome closed 1 year ago

tsansome commented 1 year ago

Hi,

On attempting to bundle my app i'm getting this error. IOS is building fine for Apple store but having issues with trying to get my app into google play now because it won't bundle.

image

My react versions

image
mikehardy commented 1 year ago

Hi there!

I must admit, I never understand why people take a text medium (bug reports, code, github) and paste hard to read graphics in there. It's strongly preferred to copy paste the actual text, and just enclose it in triple-backticks so people can read. Because your image is really hard to read, and I can't copy paste it in for web searches, so it's unfriendly to maintainers like myself.

Either way, looks like you've included the module twice somehow, maybe with manual linking and then auto-linking, but you haven't provided any evidence to back the hunch or really troubleshoot, so I can't offer more than "examine your gradle files"

https://stackoverflow.com/help/how-to-ask https://stackoverflow.com/help/minimal-reproducible-example

If you pull the example here, I think it works? It's on older versions but nothing has changed. I'm on the versions you are using and it works for me so this will be project-specific I think, unless demonstrated otherwise with a clean repro