gpt4 book ai didi

android - react native fbsdk 问题 - 任务 :react-native-fbsdk:compileDebugJavaWithJavac FAILED

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

在安装 fbsdk 库并按照所有步骤正确链接它之后,我在使用 react-native run-android 构建我的 android 文件夹时遇到问题。以下是我的错误消息。

我已经尝试将我的默认 sdk 版本从 23 更改为 27.0.1,这使我能够获得更详细的错误消息,因为之前我只会构建应用程序失败。

知道如何解决这个问题吗?它在 ios 上正常工作。

> Task :react-native-fbsdk:compileDebugJavaWithJavac FAILED
/Users/hugohyz/code/hugoh1995/dogtime_react/DogtimeReactInit/node_modules/react-native-fbsdk/android/src/main/java/com/facebook/reactnative/androidsdk/FBAppEventsLoggerModule.java:209: error: cannot find symbol
@ReactMethod(isBlockingSynchronousMethod = true)
^
symbol: method isBlockingSynchronousMethod()
location: @interface ReactMethod
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/hugohyz/code/hugoh1995/dogtime_react/DogtimeReactInit/node_modules/react-native-fbsdk/android/src/main/java/com/facebook/reactnative/androidsdk/Utility.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-fbsdk:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* 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 1s
76 actionable tasks: 1 executed, 75 up-to-date
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html

最佳答案

I solved it by updating fbsdk to 0.8.0

react-native 安装react-native-fbsdk@0.8.0

注意:这将链接库。这可能会导致您的相应文件出现双重条目,您必须手动将其删除。

关于android - react native fbsdk 问题 - 任务 :react-native-fbsdk:compileDebugJavaWithJavac FAILED,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48546467/

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