我想将此插件添加到我的离子应用程序中:https://www.transistorsoft.com/shop/products/cordova-background-geolocation
我已经通过npm安装了此插件,删除/添加了android平台。 现在,当我要构建/运行应用程序时,构建失败并显示错误。
:app:transformClassesWithDesugarForDebug FAILED
40 actionable tasks: 40 executed
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformClassesWithDesugarForDebug'.
> com.android.build.api.transform.TransformException: java.lang.RuntimeException: java.lang.RuntimeException: com.android.ide.common.process.ProcessException:
Error while executing java process with main class com.google.devtools.build.android.desugar.
构建日志位于此处:https://pastebin.com/ZrRh7i7m
您有什么建议?预先谢谢你!
答案 0 :(得分:0)
请检查Google Play服务版本以及它与支持的Cordova版本是否有冲突。 https://github.com/transistorsoft/cordova-background-geolocation-lt/issues/694