Check out example codes for "Duplicate class org.intellij.lang.annotations.". It will help you in understanding the concepts better.

Code Example 1

configurations {
            cleanedAnnotations
             compile.exclude group: 'org.jetbrains' , module:'annotations'
         }

Learn ReactJs, React Native from akashmittal.com