For some reason when I call react-native link, it adds duplicate includes to android/settings.gradle which in turn adds duplicate imports to
This is a known bug on React Native. There's currently a PR pending for this bug: https://github.com/facebook/react-native/pull/18131
Update: The bug has been fixed!
To address this issue, you'll just have to manually comb through your dependencies whenever you run react-native-link. I find it's helpful to have a clean git status before running it, then going over the changed files afterwards with git diff afterwards.