react-native link causes duplicate imports in Android settings.gradle

后端 未结 2 1694
自闭症患者
自闭症患者 2021-01-12 10:16

For some reason when I call react-native link, it adds duplicate includes to android/settings.gradle which in turn adds duplicate imports to

2条回答
  •  长情又很酷
    2021-01-12 10:58

    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.

提交回复
热议问题