【问题标题】:Detox Android "detox:compileMinReactNative44DebugJavaWithJavac" Error排毒安卓“detox:compileMinReactNative44DebugJavaWithJavac”错误
【发布时间】:2019-02-18 05:29:31
【问题描述】:

反应原生:0.53.3 排毒:9.0.1

我输入了一个脚本,但出现错误。

./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug

错误日志

> Task :detox:compileMinReactNative44DebugJavaWithJavac FAILED
/Users/{userName}/{ProjectName}/node_modules/detox/android/detox/src/main/java/com/wix/detox/espresso/ReactBridgeIdlingResource.java:65: error: method does not override or implement a method from a supertype
    @Override
    ^
Note: /Users/{userName}/{ProjectName}/node_modules/detox/android/detox/src/main/java/com/wix/detox/espresso/MultiTap.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

我已经忠实地遵循以下内容。 https://wix.github.io/detox/docs/7.2.0/Introduction.Android.html

期待您的友好回复。 :)

【问题讨论】:

    标签: react-native e2e-testing detox


    【解决方案1】:

    似乎最新的 Detox 版本 v9.0.1 对 RN 版本 https://github.com/wix/Detox/issues/919。

    这似乎现在已修复并合并到 master。 https://github.com/wix/detox/pull/922 我想您需要等待下一个版本(v9.0.2)或克隆->从 repo 构建。

    关注发布页面 --> https://github.com/wix/detox/releases

    希望这会有所帮助。

    【讨论】:

      猜你喜欢
      • 2019-11-13
      • 2015-02-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-06-26
      相关资源
      最近更新 更多