我同时使用了react-native-fbads
和react-native-ads-facebook
。我还按照安装的所有步骤操作(添加了react-native-fbsdk
等),但是每当构建项目时,都会出现以下错误。
* What went wrong:
Could not determine the dependencies of task ':app:mergeDebugAssets'.
> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
> Could not resolve project :react-native-ads-facebook.
Required by:
project :app
> Unable to find a matching configuration of project :react-native-ads-facebook:
- None of the consumable configurations have attributes.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 36s
如何将Facebook广告与本机反应一起使用? 我的本机版本是0.62.2