MacKentoch / react-native-beacons-manager

React-Native library for detecting beacons (iOS and Android)
MIT License
582 stars 316 forks source link

Execution failed for task ':app:checkDebugDuplicateClasses'. #243

Open hodoli04 opened 2 years ago

hodoli04 commented 2 years ago

Version

1.0.1

Platform

Android

OS version

android 7.0...

Steps to reproduce

  1. run-android

Expected behavior

What should happen

Actual behavior

Execution failed for task ':app:checkDebugDuplicateClasses'.

A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable Duplicate class org.intellij.lang.annotations.Identifier found in modules jetified-annotations-12.0 (com.intellij:annotations:12.0) and jetified-annotations-13.0 (org.jetbrains:annotations:13.0)

hodoli04 commented 2 years ago

I solved this issue by adding a line inside android{} in the APP level build.gradle to exclude the module.

android{ ...... ...... configurations { implementation.exclude group: 'org.jetbrains', module: 'annotations' } }