问题的cordova-plugin-file-transfer插件



在一个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

删除这个插件一切工作正常。所以这个插件是破旧的?我怎么能代替它呢?

是否有更具体的错误输出?我相信':app:compileDebugJavaWithJavac'是一个通用错误,你应该在终端的某个地方得到更多的信息。这个插件有几个问题,我们使用fork来规避其中的一些问题:

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