Could not find swiperefreshlayout.jar (androidx.swiperefreshlayout:swiperefreshlayout:1.0.0)

家住魔仙堡 提交于 2021-02-20 14:53:27

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!