在一个cordova项目中,我合并了cordova- plugin -文件传输插件,但是添加这个插件给了我这个问题:
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删除这个插件一切都很好。这么说这个插件是破旧的?我怎么能换掉它呢?
发布于 2022-07-08 11:51:56
您是否有更具体的错误输出?我相信':app:compileDebugJavaWithJavac‘是一个通用错误,您应该在您的终端中获得更多的信息。这个插件有几个问题,我们用叉子来规避其中的一些问题:cordova- plugin -file ios-fix。
另外,这个插件不适用于cordova 11。最后,据报道,这个插件被废弃了,您可能会考虑让它的替换(XMLHttpRequest)工作,而不是花费精力在这个插件上。
https://stackoverflow.com/questions/72898596
复制相似问题