我正在尝试对本机运行android出现此问题?
Could not resolve all files for configuration ':react-native-screens:debugCompileClasspath'.
Could not find swiperefreshlayout.jar (androidx.swiperefreshlayout:swiperefreshlayout:1.0.0)
答案 0 :(得分:4)
我通过更改导航x5来解决此问题:
androidx.swiperefreshlayout:swiperefreshlayout:1.0.0
转到
。\ node_modules \ react-native-screens \ android \ build.gradel
更改版本
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.0.0'
到
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0-beta01'
答案 1 :(得分:0)
添加到android/app/build.gradle
dependencies {
...
implementation 'androidx.appcompat:appcompat:1.1.0-rc01'
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0-alpha02'
}
参考:https://github.com/software-mansion/react-native-screens#usage-with-react-navigation-without-expo