Open baron554 opened 5 years ago
@ratson would you be able to take a look at this? I have already been using your plugin for a month now and really like it but if I cannot resolve this I will have to switch to a new plugin. Yours is especially nice as it provides a means to use rewarded ad videos.
@baron554 If you could setup a example repo showing the problem, I would look into it.
I was able to resolve the issue, it was a dependency issue between the plugins. Thanks @ratson.
I think @baron554 opened that question and he gave solution.
Just adding one line on [cordova project base] > platforms > android > app > build.gradle file:
android {
defaultConfig {
multiDexEnabled true
}
}
Did you find the solution? I have tried both
1)
android { defaultConfig { multiDexEnabled true } }
2) ` compile "com.google.firebase:firebase-core:+" compile "com.google.firebase:firebase-messaging:+" compile "com.google.firebase:firebase-config:+" compile "com.google.firebase:firebase-perf:+"
compile "com.google.android.gms:play-services-ads:+"
compile "com.google.android.gms:play-services-tagmanager:+"`
But these two methods are not working.
@merbin2012
Be kind, read carefully and try to be professional. However.
https://github.com/arnesson/cordova-plugin-firebase/#google-play-services "Your build may fail if you are installing multiple plugins that use Google Play Services..."
If you could setup a example repo showing the problem, someone would look into it.
https://github.com/ratson/cordova-plugin-admob-free https://github.com/arnesson/cordova-plugin-firebase/
When both of these plugins are used together the app:transformClassesWithDesugarForDebug task will fail. I have not found a way to fix this. The error log is provided below in the stack overflow link.
I have documented the issue at: https://stackoverflow.com/questions/51179005/execution-failed-for-task-apptransformclasseswithdesugarfordebug-cordova-gra