Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate class a.a found in modules #76

Open
sanvisser opened this issue Sep 11, 2023 · 1 comment · Fixed by #77
Open

Duplicate class a.a found in modules #76

sanvisser opened this issue Sep 11, 2023 · 1 comment · Fixed by #77
Assignees
Labels

Comments

@sanvisser
Copy link

Hi!
Since adding this plugin to my Ionic Capacitor Angular project I get the following error whilst running 'ionic cap run android'.

 > A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
[capacitor]         > Duplicate class a.a found in modules jetified-smartlook-analytics-frame-capturer-2.2.0-runtime (com.smartlook.android:smartlook-analytics-frame-capturer:2.2.0) and jetified-tslocationmanager-3.4.5-runtime (com.transistorsoft:tslocationmanager:3.4.5)

It seems there might be some obfuscation going on in both libraries. Problem is that I can't just remove one of them, which seems to be the suggested solution most of the time, because they both serve different purposes. Using smartlook and our main location library.

I'm wondering if it's possible to fix this on the libraries end?

@c0mtru1se
Copy link
Collaborator

c0mtru1se commented Sep 29, 2023

Hi there!
Thanks for reaching out.
This seems like an odd issue, as the tslocationmanager's Android SDK might be missing a proguard rule preventing the conflicting obfuscation (e.g. a.a.xxx) and the jetifier picks it incorrectly.
I've just released a new version, 2.0.3 which attempts to fix this on our side, so please do try it out and let me know if it helps.
Thank you!

@c0mtru1se c0mtru1se self-assigned this Sep 29, 2023
@c0mtru1se c0mtru1se added the Bug label Sep 29, 2023
@c0mtru1se c0mtru1se linked a pull request Sep 29, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants