【问题标题】:problem with cordova-plugin-file-transfer plugin科尔多瓦插件文件传输插件的问题
【发布时间】:2022-07-08 19:53:05
【问题描述】:

在一个 cordova 项目中,我合并了 cordova-plugin-file-transfer 插件,但添加它会给我带来这个问题:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app: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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.1.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 6s
45 actionable tasks: 5 executed, 40 up-to-date

删除这个插件一切正常。 所以这个插件是老掉牙的? 我该如何替换它?

【问题讨论】:

    标签: cordova plugins


    【解决方案1】:

    [在此处输入图像描述][1]您有更具体的错误输出吗? 我相信 ':app:compileDebugJavaWithJavac' 是一个通用错误,您应该在终端的某处获得更多信息。 这个插件有几个问题,我们使用 fork 来规避其中一些问题:cordova-plugin-file-transfer-ios-fix

    此外,该插件不适用于 cordova 11。 最后,据报道该插件已被弃用,您可能想考虑让它的替代品 (XMLHttpRequest) 工作,而不是花精力在这个插件上。

    【讨论】:

      猜你喜欢
      • 2017-08-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-10-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多