[英]Unable to build ionic app using the ibm-mfp-push cordova plugin on Android (conflict with google-analytics cordova plugin)
I've been developing an Ionic app for several months, successfully using the ibm-mfp-push plugin for Push Notifications. 我已经开发了几个月的Ionic应用程序,成功地使用推送通知的ibm-mfp-push插件。
I would now need to use the cordova-plugin-google-analytics plugin. 我现在需要使用cordova-plugin-google-analytics插件。 I've added the plugin to my project and was able to make it work properly on iOS.
我已经将插件添加到我的项目中,并且能够在iOS上正常运行。
But when trying to build the project for android, I get the following error: 但是当试图为Android构建项目时,我收到以下错误:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/internal/zzpz;
Seems like there is a conflict between ibm-mfp-push and cordova-google-analytics. 似乎ibm-mfp-push和cordova-google-analytics之间存在冲突。
Could someone please provide some help? 有人可以提供一些帮助吗?
Thanks 谢谢
Right now adding this Google Analytics plugin for Cordova does result in a conflict with the ibm-mfp-push
plugin -- I am able to recreate and confirm. 现在为Cordova添加此Google Analytics插件会导致与
ibm-mfp-push
插件冲突 - 我可以重新创建并确认。 I've let the service team know. 我让服务团队知道了。
For the time being, I recommend using the native solution for Android. 目前,我建议使用适用于Android的原生解决方案。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.