0

React Native Link 似乎不会解析对配置文件的先前更改,而是进行增量、重复的更改。

例如,android/app/build.gradle开始于:

dependencies {
  compile project(':react-native-linear-gradient')
  compile project(':react-native-fcm')
  compile project(':react-native-cookie')
}

第一次调用后react-native link

dependencies {
  compile project(':react-native-vector-icons')
  compile project(':react-native-linear-gradient')
  compile project(':react-native-fcm')
  compile project(':react-native-cookie')
  compile project(':react-native-linear-gradient')
  compile project(':react-native-fcm')
  compile project(':react-native-cookie')
}

第二次调用后...

dependencies {
  compile project(':react-native-vector-icons')
  compile project(':react-native-linear-gradient')
  compile project(':react-native-fcm')
  compile project(':react-native-cookie')
  compile project(':react-native-vector-icons')
  compile project(':react-native-linear-gradient')
  compile project(':react-native-fcm')
  compile project(':react-native-cookie')
  compile project(':react-native-linear-gradient')
  compile project(':react-native-fcm')
  compile project(':react-native-cookie')
}

等等..

有什么好的地方可以开始我的调查吗?

4

1 回答 1

1

嘿,你的答案就在那里:react-native 链接会导致 Android settings.gradle 中的重复导入

它目前处于 PR 并正在测试中。

于 2018-03-05T16:07:53.260 回答