Android 构建失败 : Unable to find facebook-core:5. 11.1

标签 android facebook react-native

在最近更新的 facebook SDK 中,我在同步 android 项目(react native)中的 gradle 文件时遇到了这个问题。

error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details. Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081

失败:构建失败,出现异常。

facebook-core:5.11.1 failed to resolve.

最佳答案

要使其正常工作,您必须将以下行添加到 android/gradle.properties:

facebookSdkVersion=5.11.0

使用旧的 SDK 版本。

Solution通过安德鲁兹

关于Android 构建失败 : Unable to find facebook-core:5. 11.1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58988872/

相关文章:

java - SimpleAdapter 在 while 循环中显示相同的数据

ios - 10.6 详细信息 我们注意到用户被带到 Safari 以登录或注册帐户,这提供了较差的用户体验

javascript - 如何在 React 中更新嵌套状态,状态应该是不可变的吗?

Android:当 RecyclerView 项目设置为可点击时会阻止 onTouch 事件

android - 如何在 android studio 中集成最新的 Google play 服务

ios - 使用 API 的开发者 key

javascript - Android Webview JSInterface 与 ReactJS 通信

react-native - React Native 中两个宽度相等的按钮水平填满屏幕

syntax-error - native (ES5)至(ES6)

android - 如何创建圆形画廊 View /图像切换器/ ImageView ...?