英文:
Could not find com.facebook.flipper:flipper-fresco-plugin:0.190.0
问题
我有一个使用 react-native@0.71.7 的 React Native 应用程序,并且在尝试让 redux-flipper 正常工作时遇到了困难。 部分指令是明确包括 react-native-flipper 依赖项。 我不介意这样做,因为我可以遵循使用最新 flipper sdk 的指示,而不是与 react-native 一起提供的较旧版本。然而,这会在构建 Android 时导致错误。Could not find com.facebook.flipper:flipper-fresco-plugin:0.190.0
我似乎无法弄清楚如何升级 flipper,除非我降级到较旧版本。 (我让 0.177.0 版本正常工作)。
英文:
I have a react native app using react-native@0.71.7 and I am having a heck of a time getting redux-flipper working. Part of the instructions are to explicitly include the react-native-flipper dependency. I don't mind this as I can follow the instructions to use the latest flipper sdk, rather than the older version that ships with react-native.
However that causes an error in the build for android.
Could not find com.facebook.flipper:flipper-fresco-plugin:0.190.0
I can't seem to figure out how to upgrade flipper unless I downgrade to a previous version. (I got 0.177.0 working).
答案1
得分: 4
I found the answer to this! Flipper is no longer building flipper-fresco so the versions are not synced. React Native assumes they are and has the following in the app/build.gradle file
debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}")
Since fresco is no longer in sync you need to lock it in. The latest version I found in maven was 0.182.0 so change the build.gradle to.
debugImplementation("com.facebook.flipper:flipper-fresco-plugin:0.182.0")
英文:
I found the answer to this! Flipper is no longer building flipper-fresco so the versions are not synced. React native assumes they are and has the following in the app/build.gradle file
debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}")
Since fresco is no longer in sync you need to lock it in. The latest version I found in maven was 0.182.0 so change the build.gradle to.
debugImplementation("com.facebook.flipper:flipper-fresco-plugin:0.182.0")
答案2
得分: 2
The current official solution is to update your android/gradle.properties file with the following, anything higher than version 0.182.0 will fail at the moment
Version of flipper SDK to use with React Native
FLIPPER_VERSION=0.182.0
英文:
The current official solution is to update your android/gradle.properties file with the following, anything higher than version 0.182.0 will fail at the moment
# Version of flipper SDK to use with React Native
FLIPPER_VERSION=0.182.0
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论