问题
I'm trying to react-native run-android there is this problem??
Could not resolve all files for configuration ':react-native-screens:debugCompileClasspath'.
Could not find swiperefreshlayout.jar (androidx.swiperefreshlayout:swiperefreshlayout:1.0.0)
回答1:
i fix it by change this for Navigation x5:
androidx.swiperefreshlayout:swiperefreshlayout:1.0.0
GO to
.\node_modules\react-native-screens\android\build.gradel
change the version of
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.0.0'
to
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0-beta01'
回答2:
Add to android/app/build.gradle
dependencies {
...
implementation 'androidx.appcompat:appcompat:1.1.0-rc01'
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0-alpha02'
}
Reference: https://github.com/software-mansion/react-native-screens#usage-with-react-navigation-without-expo
来源:https://stackoverflow.com/questions/60463067/could-not-find-swiperefreshlayout-jar-androidx-swiperefreshlayoutswiperefreshl