Hello!
So I’m trying to add firebase to the Android studio project for my plugin. However, I’m having some issues with version compatibility (Its giving me an error about multidexing).
Also, there are some dependencies that I need to put is the app build.gradle and I’m not exactly sure how to handle them once I export this to a plugin.
Following the guides from here:
https://firebase.google.com/docs/android/setup
https://firebase.google.com/docs/cloud-messaging/android/client
In app build.gradle I need to add this:
buildscript { // ... dependencies { // ... classpath 'com.google.gms:google-services:3.0.0' } }
and this:
apply plugin: 'com.google.gms.google-services'
And then I’m adding the messaging library, so I’m putting this in my plugin build.gradle:
dependencies { compile 'com.google.firebase:firebase-messaging:10.2.0' }
However, when I compile, I get this error:
Error:Execution failed for task ‘:app:transformClassesWithDexForRelease’.
> 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/zzaac$zza;
And when I look at the pre-dexed filed, in the intermediaries folder, I see 10.0.1 version and 10.2.0 version. Does Corona include some libraries automatically? If not what can be the folder. Also, how do I handle compiling these libraries into a plugin?
Thank you!