gpt4 book ai didi

android - Facebook SDK "Package bolts does not exist error"安卓工作室

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:04:02 25 4
gpt4 key购买 nike

我正在尝试使用 this 将 Facebook 登录添加到我的应用程序中方法但出现以下错误:

Error:(21, 13) error: package bolts does not exist
Error:(22, 13) error: package bolts does not exist
Error:(23, 13) error: package bolts does not exist
Error:(24, 13) error: package bolts does not exist
Error:(37, 49) error: cannot find symbol class AppLinkResolver
Error:(48, 32) error: cannot find symbol class AppLink
Error:(58, 12) error: cannot find symbol class Task
Error:(58, 17) error: cannot find symbol class AppLink
Error:(80, 12) error: cannot find symbol class Task
Error:(80, 26) error: cannot find symbol class AppLink
Error:(182, 27) error: package AppLink does not exist
Error:(48, 75) error: cannot find symbol class AppLink
Error:(62, 9) error: cannot find symbol class Task
Error:(62, 23) error: cannot find symbol class AppLink
Error:(64, 42) error: cannot find symbol class Continuation
Error:(64, 64) error: cannot find symbol class AppLink
Error:(64, 74) error: cannot find symbol class AppLink
Error:(81, 24) error: cannot find symbol class AppLink
Error:(81, 67) error: cannot find symbol class AppLink
Error:(86, 13) error: cannot find symbol class AppLink
Error:(103, 20) error: cannot find symbol variable Task
Error:(106, 15) error: cannot find symbol class Task
Error:(106, 29) error: cannot find symbol class AppLink
Error:(106, 83) error: cannot find symbol variable Task
Error:(151, 45) error: package AppLink does not exist
Error:(151, 85) error: package AppLink does not exist
Error:(154, 44) error: package AppLink does not exist
Error:(161, 33) error: cannot find symbol class AppLink
Error:(161, 55) error: cannot find symbol class AppLink
Error:(196, 27) error: package AppLink does not exist

有个类似的问题here但是答案规定了将Facebook SDK添加到项目中的导入方法的解决方案。任何建议将不胜感激。

最佳答案

通过将包含 bolts.jar 文件的 libs 文件夹重新复制回 Facebook 模块解决了这个问题(请注意第一个链接中的说明之一我在问题中提供的是删除 libs 文件夹),然后更改 Facebook 模块的 build.gradle 文件中的以下内容。

 compile files('../libs/bolts.jar')

  compile files('./libs/bolts.jar')

请注意第一个点中的单点而不是双点。之后执行sync project with gradle files操作,错误消失。

关于android - Facebook SDK "Package bolts does not exist error"安卓工作室,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25332238/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com