Unable to build ionic app using the ibm-mfp-push cordova plugin on Android (conflict with google-analytics cordova plugin)
Closed this issue · 3 comments
Hi,
I've been developing an Ionic app for several months, successfully using the ibm-mfp-push plugin for Push Notifications.
I would now need to use the cordova-plugin-google-analytics plugin.
I've added the plugin to my project and was able to make it work properly on iOS.
But when trying to build the project for android, I get the following error:
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.
Could someone please provide some help?
Thanks
works with new bms-push plugin .
@AnanthaKrish - Can you please help me in deciding how do I use bms-core plugin. I am on Ionic 2 project.
I have tried to call BMSClient directly inside the platform ready in app.component.ts. But no success. The error throws "cannot find module BMSClient". If I try to import the bms-core plugins directory, it still says so.
Here is the snippet.
import { Component } from '@angular/core';
import { Platform } from 'ionic-angular';
import { StatusBar, Splashscreen } from 'ionic-native';
import { Dashboard } from '../pages/dashboard/dashboard';
@Component({
templateUrl: 'app.html'
})
export class Fusion {
rootPage = Dashboard;
constructor(platform: Platform) {
platform.ready().then(() => {
// Okay, so the platform is ready and our plugins are available.
// Here you can do any higher level native things you might need.
StatusBar.styleDefault();
Splashscreen.hide();
BMSClient.initialize(BMSClient.REGION_US_SOUTH);
});
}
}