Cordova-Plugin-File-Transfer插件的问题
在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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否更具体的错误输出?
我相信':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.