cordova-plugin-文件传输插件问题

cnwbcb6i  于 2022-11-15  发布在  其他
关注(0)|答案(1)|浏览(174)

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

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

2w3kk1z5

2w3kk1z51#

你有更具体的错误输出吗?我相信':app:compileDebugJavaWithJavac'是一个一般性的错误,你应该在你的终端的某个地方得到一些更多的信息。这个插件有几个问题,我们使用分叉,以规避其中的一些:cordova插件文件传输ios修复
此外,该插件不适用于cordova 11。最后,据报道,该插件已被弃用,您可能需要考虑让它的替代品(XMLHttpRequest)工作,而不是在此插件上花费精力。

相关问题