首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >执行失败: react-native-fbsdk:compileReleaseJavaWithJavac‘

执行失败: react-native-fbsdk:compileReleaseJavaWithJavac‘
EN

Stack Overflow用户
提问于 2019-01-24 16:20:35
回答 1查看 802关注 0票数 0
  • 出了什么问题:任务':react-native-fbsdk:compileReleaseJavaWithJavac'.的执行失败编译失败;有关详细信息,请参阅编译器错误输出。

我用相同的主题尝试了在StackOverflow上发布的所有解决方案。

代码语言:javascript
复制
:react-native-fbsdk:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
C:\Users\karol\OneDrive\Documents\GitHub\bootkik-mobile\node_modules\react-native-fbsdk\android\src\main\java\com\facebook\reactnative\androidsdk\FBGraphRequestModule.java:155: error: no suitable constructor found for AccessToken(String,String,String,<null>,<null>,<null>,<null>,<null>)
            graphRequest.setAccessToken(new AccessToken(
                                        ^
    constructor AccessToken.AccessToken(String,String,String,Collection<String>,Collection<String>,AccessTokenSource,Date,Date,Date) is not applicable
      (actual and formal argument lists differ in length)
    constructor AccessToken.AccessToken(Parcel) is not applicable
      (actual and formal argument lists differ in length)
C:\Users\karol\OneDrive\Documents\GitHub\bootkik-mobile\node_modules\react-native-fbsdk\android\src\main\java\com\facebook\reactnative\androidsdk\Utility.java:64: error: no suitable constructor found for AccessToken(String,String,String,List<String>,List<String>,AccessTokenSource,Date,Date)
        return new AccessToken(
               ^
    constructor AccessToken.AccessToken(String,String,String,Collection<String>,Collection<String>,AccessTokenSource,Date,Date,Date) is not applicable
      (actual and formal argument lists differ in length)
    constructor AccessToken.AccessToken(Parcel) is not applicable
      (actual and formal argument lists differ in length)
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\Users\karol\OneDrive\Documents\GitHub\bootkik-mobile\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.
2 errors
:react-native-fbsdk:compileReleaseJavaWithJavac FAILED

FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':react-native-fbsdk:compileReleaseJavaWithJavac'.
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.

BUILD FAILED

Total time: 13.084 secs
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/getting-started.html

想知道有没有人能解决这个问题?

谢谢

EN

回答 1

Stack Overflow用户

发布于 2019-01-24 17:01:39

Facebook用4.38或4.39版本的模块打破了他们的API。您必须依赖于4.37才能编译代码。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/54351088

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档