facebookarchive / react-native-fbsdk

A React Native wrapper around the Facebook SDKs for Android and iOS. Provides access to Facebook login, sharing, graph requests, app events etc.
https://developers.facebook.com/docs/react-native
Other
2.99k stars 909 forks source link

None of the consumable configurations have attributes. #789

Open codesoverflow opened 3 years ago

codesoverflow commented 3 years ago

Followed all the steps but still, it is not working. Please check the below error, I found in the console while creating debug build.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.6/userguide/command_line_interface.html#sec:command_line_warnings

FAILURE: Build failed with an exception.

BUILD FAILED in 29s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details. Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

BUILD FAILED in 29s

at makeError (/var/codes/react-native/appSize/node_modules/execa/index.js:174:9)
at Promise.all.then.arr (/var/codes/react-native/appSize/node_modules/execa/index.js:278:16)
at processTicksAndRejections (internal/process/next_tick.js:81:5)

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! appSize@0.0.1 android: react-native run-android npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the appSize@0.0.1 android script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /home/jaswant/.npm/_logs/2020-08-15T13_33_48_636Z-debug.log

mohammadmaleh commented 3 years ago

having the same issue

yasser17 commented 3 years ago

same issue

salman660 commented 3 years ago

same issue here

akhzarna commented 3 years ago

having the same issue, can anyone help me ?

tahirhameed commented 3 years ago

Having the same issue ?

haxonadora commented 3 years ago

try changing the order of lines in settings.gradle to this:

applyNativeModulesSettingsGradle(settings)
include ':react-native-fbads'
project(':react-native-fbads').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-fbads/android/app/')
include ':react-native-fbsdk'
project(':react-native-fbsdk').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-fbsdk/android')

applyNativeModulesSettingsGradle(settings) has to be before linking lines

akhzarna commented 3 years ago

I have already implemented admob, No need to go with facebook audience networks