javascript - TypeError:null 不是对象(评估 LoginManager.logInWithPermissions)
问题描述
我已经运行了 react-native link
react-native-fbsdk
。我还添加了依赖项,见下文:
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'com.facebook.react:react-native:+'
implementation 'com.facebook.android:facebook-login:[5,6)'
我仍然收到错误LoginManager.LogInWithPermissions
不是函数
解决方案
一切 nau 都适用于 nativescript android-sdk
我认为这是 android studio 问题。我建议在 android studio 中使用 nativescript sdk 进行 react-native 开发
推荐阅读
- r - for 循环中的嵌套 if 语句,“条件长度 > 1 且仅使用第一个元素”
- angular - 如何将存储(用户会话)数据传递到侧菜单离子 5?
- python - 如何从numpy数组中获取分段对象的区域
- python - Paramiko 无法获取 xwindow 信息
- html - 光滑的缩略图滑块当前更改缩略图焦点需要悬停
- sql - 什么是“指定的重复键值”。AS/400 -SQL 中的错误?
- javascript - 发送带有动作触发器和 onclick 触发器的表单
- spring-boot - 在测试容器的 init 函数中获取数据源属性
- postgresql - 从引导函数中删除空值
- c++ - 通过手动安装库来修复 gcc undefined include<>