Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android build failed: Unable to find facebook-core:5.11.1

In the recent update of the facebook SDK, i got this issue while syncing the gradle file in android project (react native).

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

FAILURE: Build failed with an exception.

facebook-core:5.11.1 failed to resolve.

like image 922
anurag sharma Avatar asked Jan 01 '23 11:01

anurag sharma


1 Answers

To make it work, you have to add following line to android/gradle.properties:

facebookSdkVersion=5.11.0

to use the old SDK Version.

Solution by andrewzey

like image 79
Mohsin Avatar answered Jan 13 '23 09:01

Mohsin