[MultiDex error] when installed firebase and appodeal


#1

Hi
I add Appodeal plugin in my project and everything is fine, installed from here
https://www.npmjs.com/package/com.appodeal.plugin
because the link from ionicframwork doesn’t work for me

ok, when im installed firebase :

getting this 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/zzee;

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

and I saw when installing one of them on second plugin (that already exist ) i get error message either firebase or appodeal

CLI info:

cli packages:

	@ionic/cli-utils : 1.9.2
	ionic <Ionic CLI>: 3.9.2

global packages:

	Cordova CLI : 7.0.1

local packages

	@ionic/app-scripts : 2.1.4
	Cordova Plarforms  : android 6.2.3
	Ionic Framework    : ionic-angular 3.6.0

system :

	Android SDK Tools : 26.1.1
	Node 			  : v7.7.3
	npm				  : 4.1.2
	OS				  : Windows 7```



cordova plugins

com.appodeal.plugin 2.1.1 "Appodeal Plugin"
com.hutchind.cordova.plugins.streamingmedia 0.1.4 "StreamingMedia"
cordova-plugin-console 1.0.5 "Console"
cordova-plugin-device 1.1.4 "Device"
cordova-plugin-firebase 0.1.24 "Google Firebase Plugin"
cordova-plugin-inappbrowser 1.7.2 "InAppBrowser"
cordova-plugin-market 1.2.0 "Market"
cordova-plugin-splashscreen 4.0.3 "Splashscreen"
cordova-plugin-statusbar 2.2.2 "StatusBar"
cordova-plugin-whitelist 1.3.1 "Whitelist"
cordova-plugin-x-socialsharing 5.1.8 "SocialSharing"
cordova-plugin-x-toast 2.6.0 "Toast"
cordova-sqlite-storage 2.0.4 "Cordova sqlite storage plugin"
es6-promise-plugin 4.1.0 "Promise"
ionic-plugin-keyboard 2.2.1 "Keyboard"
uk.co.workingedge.cordova.plugin.sqliteporter 1.0.1 "sqlite porter"

project.properties:

target=android-25
android.library.reference.1=CordovaLib
cordova.system.library.1=com.android.support:support-v4:24.1.1+
cordova.system.library.2=com.google.android.gms:play-services-ads:9+
android.library.reference.2=com.appodeal.plugin/MFt190880420-cheetah-mobile
cordova.gradle.include.1=cordova-plugin-firebase/MFt190880420-build.gradle
cordova.system.library.2=com.google.gms:google-services:+
cordova.system.library.3=com.google.firebase:firebase-core:+
cordova.system.library.4=com.google.firebase:firebase-messaging:+
cordova.system.library.5=com.google.firebase:firebase-crash:+
cordova.system.library.6=com.google.firebase:firebase-config:+

build.gradle

  compile "com.android.support:support-v4:24.1.1+"
    compile "com.google.android.gms:play-services-ads:9+"
    compile "com.google.gms:google-services:+"
    compile "com.google.firebase:firebase-core:+"
    compile "com.google.firebase:firebase-messaging:+"
    compile "com.google.firebase:firebase-crash:+"
    compile "com.google.firebase:firebase-config:+"

i have :
Android Studio 2.3
updated sdk
delete and add platform
still not working


#2

i think that appodel compile:

"com.google.android.gms:play-services-ads:9+"

has a conflict with firebase compiles:

  compile "com.google.gms:google-services:+"
    compile "com.google.firebase:firebase-core:+"
    compile "com.google.firebase:firebase-messaging:+"
    compile "com.google.firebase:firebase-crash:+"
    compile "com.google.firebase:firebase-config:+"

any solution plz???