gpt4 book ai didi

android - Facebook SDK - Ant clean 发布失败

转载 作者:太空狗 更新时间:2023-10-29 15:04:07 26 4
gpt4 key购买 nike

我只是从 github 下载最新的 facebook SDK。我将我的 facebook SDK 导入到我的 cordova 项目中,然后当我尝试使用 cordova build android 构建项目时,我的终端中总是出现此错误。我已经完成了 ant clean release,错误仍然存​​在。目前使用 android sdk 19。

-compile:
[javac] Compiling 94 source files to /Users/MNurdin/Documents/Github/facebook-android-sdk/facebook/bin/classes
[javac] /Users/MNurdin/Documents/Github/facebook-android-sdk/facebook/src/com/facebook/widget/WebDialog.java:349: warning: [deprecation] setSavePassword(boolean) in android.webkit.WebSettings has been deprecated
[javac] webView.getSettings().setSavePassword(false);
[javac] ^
[javac] /Users/MNurdin/Documents/Github/facebook-android-sdk/facebook/src/com/facebook/widget/PickerFragment.java:638: warning: [deprecation] setBackgroundDrawable(android.graphics.drawable.Drawable) in android.view.View has been deprecated
[javac] titleBar.setBackgroundDrawable(titleBarBackground);
[javac] ^
[javac] /Users/MNurdin/Documents/Github/facebook-android-sdk/facebook/src/com/facebook/widget/PickerFragment.java:660: warning: [deprecation] setBackgroundDrawable(android.graphics.drawable.Drawable) in android.view.View has been deprecated
[javac] doneButton.setBackgroundDrawable(doneButtonBackground);
[javac] ^
[javac] 3 warnings

BUILD FAILED
/Applications/android-sdk/tools/ant/build.xml:720: The following error occurred while executing this line:
/Applications/android-sdk/tools/ant/build.xml:734: Compile failed; see the compiler error output for details.

我已经通过 stackoverflow 搜索了答案,但仍然无法找到解决方案。

最佳答案

我已经找到了答案。无需使用 Facebook SDK。我使用这个而不是来自 facebook 的 facebook SDK。

https://github.com/phonegap-build/FacebookConnect

关于android - Facebook SDK - Ant clean 发布失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23525557/

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