我正在通过这个库使用 react-native facebook 登录:react-native-fbsdk。遵循安装指南并没有完全让它工作,但我设法在本机端修改后让它工作,正如许多 github 问题等中所指示的那样。
无论如何,两周前它运行良好,但现在,当我尝试使用 facebook 登录时,应用程序立即崩溃。它不会打开任何登录页面或做任何其他事情。
奇怪的是,如果我在模拟器中打开浏览器,将其保留在后台,然后尝试登录,登录会更进一步(我可以实际登录,但是当我被引导回来时,应用程序崩溃)。
从墓碑文件中,我可以获得以下警告/消息:
预期本机库版本号“”,实际本机库版本号“”
十这样的:
找不到为类 com.facebook.reactnative.androidsdk.FBLoginButtonManager 生成的设置器
我该如何解决这个问题?为什么它不再起作用了?我没有更改代码中的任何内容。我唯一能想到的是它在编译应用程序期间从互联网加载了一些东西。不然怎么会失败?