Cordova-Plugin-File-Transfer插件的问题

发布于 2025-02-13 22:15:14 字数 929 浏览 0 评论 0原文

在Cordova项目中,我合并了Cordova-Plugin-File-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

删除此插件都可以正常工作。 那么这个插件是衰老的吗? 我该如何更换它?

in a cordova project I incorporated the cordova-plugin-file-transfer plugin but adding this gives me this problem:

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

removing this plugin everything works fine.
So this plugin is decrepit?
and how could I replace it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

千鲤 2025-02-20 22:15:14

您是否更具体的错误输出?
我相信':app:compiledebugjavawithjavac'是一个通用错误,您应该在终端中的某个地方获得更多信息。
该插件有几个问题,我们使用叉子来绕过其中的一些问题:Cordova-Plugin-File-Frugin-Frans-ios-Fix

也是如此,该插件也无法与Cordova 11一起使用。
最后,据报道,该插件已弃用,您可能想考虑将其替换(XMLHTTPRequest)进行工作,而不是在此插件上花费精力。

Do you more specific error output?
I believe ':app:compileDebugJavaWithJavac' is a generic error and you should get some more information somewhere in your terminal.
This plugin has several issues, we use the fork, to circumvent some of them: cordova-plugin-file-transfer-ios-fix

Also, the plugin doesn't work with cordova 11.
Lastly, the plugin is reportedly deprecated and you might wanna consider getting it's replacement (XMLHttpRequest) to work instead of spending effort on this plugin.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文