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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With